public class StopPattern extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
int[] |
dropoffs |
static int |
PICKDROP_CALL_AGENCY |
static int |
PICKDROP_COORDINATE_WITH_DRIVER |
static int |
PICKDROP_NONE |
static int |
PICKDROP_SCHEDULED |
int[] |
pickups |
int |
size |
Stop[] |
stops |
Constructor and Description |
---|
StopPattern(List<StopTime> stopTimes)
Create StopPattern without deduplicating arrays
|
StopPattern(List<StopTime> stopTimes,
Deduplicator deduplicator)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsStop(String stopId) |
boolean |
equals(Object other) |
StopPatternFlexFields |
getFlexFields() |
boolean |
hasFlexFields() |
int |
hashCode() |
com.google.common.hash.HashCode |
semanticHash(com.google.common.hash.HashFunction hashFunction)
In most cases we want to use identity equality for StopPatterns.
|
void |
setFlexFields(StopPatternFlexFields flexFields) |
String |
toString() |
public static final int PICKDROP_SCHEDULED
public static final int PICKDROP_NONE
public static final int PICKDROP_CALL_AGENCY
public static final int PICKDROP_COORDINATE_WITH_DRIVER
public final int size
public final Stop[] stops
public final int[] pickups
public final int[] dropoffs
public StopPattern(List<StopTime> stopTimes, Deduplicator deduplicator)
stopTimes
- List of StopTimes; assumes that stopTimes are already sorted by time.deduplicator
- Deduplicator. If null, do not deduplicate arrays.public boolean containsStop(String stopId)
stopId
- in agency_id formatpublic com.google.common.hash.HashCode semanticHash(com.google.common.hash.HashFunction hashFunction)
public StopPatternFlexFields getFlexFields()
public void setFlexFields(StopPatternFlexFields flexFields)
public boolean hasFlexFields()
Copyright © 2019. All rights reserved.