public class StopMatcher extends Object implements Cloneable, Serializable
Modifier and Type | Method and Description |
---|---|
String |
asString()
Returns string representation of this matcher
|
StopMatcher |
clone() |
static StopMatcher |
emptyMatcher()
Return an empty matcher (which matches no stops).
|
boolean |
equals(Object another) |
int |
hashCode() |
boolean |
isEmpty()
Returns whether this matcher is empty
|
boolean |
matches(Stop stop)
Function to determine whether this StopMatcher matches a particular stop.
|
static StopMatcher |
parse(String stopList)
Build a new StopMatcher from a string representation.
|
String |
toString() |
public static StopMatcher emptyMatcher()
public boolean isEmpty()
public static StopMatcher parse(String stopList)
stopList
- is a comma-separated list of stops, each of the format [agencyId]:[stopId]IllegalArgumentException
- if the string representation is invalid.public boolean matches(Stop stop)
stop
- is the stop to match using its IDpublic String asString()
public StopMatcher clone()
Copyright © 2019. All rights reserved.