public class TraverseModeSet extends Object implements Cloneable, Serializable
Constructor and Description |
---|
TraverseModeSet(Collection<TraverseMode> modeList) |
TraverseModeSet(String modelist) |
TraverseModeSet(TraverseMode... modes) |
Modifier and Type | Method and Description |
---|---|
static TraverseModeSet |
allModes()
Returns a mode set containing all modes.
|
void |
clear()
Clear the mode set so that no modes are included.
|
TraverseModeSet |
clone() |
boolean |
contains(TraverseMode mode) |
boolean |
equals(Object other) |
boolean |
get(int modeMask) |
boolean |
getAirplane() |
String |
getAsStr()
get this traverse mode as a string that can be fed back into the constructor
|
boolean |
getBicycle() |
boolean |
getBus() |
boolean |
getCableCar() |
boolean |
getCar() |
boolean |
getFerry() |
boolean |
getFunicular() |
boolean |
getGondola() |
int |
getMask() |
List<TraverseMode> |
getModes() |
TraverseModeSet |
getNonTransitSet()
Returns a TraverseModeSet containing only the non-transit modes set.
|
boolean |
getRail() |
boolean |
getSubway() |
boolean |
getTram() |
boolean |
getWalk() |
int |
hashCode() |
boolean |
isTransit()
Returns true if the trip may use some transit mode
|
boolean |
isValid() |
void |
setAirplane(boolean airplane) |
void |
setBicycle(boolean bicycle) |
void |
setBus(boolean bus) |
void |
setCableCar(boolean cableCar) |
void |
setCar(boolean car) |
void |
setFerry(boolean ferry) |
void |
setFunicular(boolean funicular) |
void |
setGondola(boolean gondola) |
void |
setMode(TraverseMode mode,
boolean value) |
void |
setRail(boolean rail) |
void |
setSubway(boolean subway) |
void |
setTram(boolean tram) |
void |
setTransit(boolean transit) |
void |
setWalk(boolean walk) |
String |
toString() |
public TraverseModeSet(String modelist)
public TraverseModeSet(TraverseMode... modes)
public TraverseModeSet(Collection<TraverseMode> modeList)
public static TraverseModeSet allModes()
public int getMask()
public void setMode(TraverseMode mode, boolean value)
public boolean getBicycle()
public boolean getWalk()
public boolean getCar()
public boolean getTram()
public boolean getBus()
public boolean getGondola()
public boolean getFerry()
public boolean getCableCar()
public boolean getFunicular()
public boolean getRail()
public boolean getSubway()
public boolean getAirplane()
public void setBicycle(boolean bicycle)
public void setWalk(boolean walk)
public void setCar(boolean car)
public void setTram(boolean tram)
public void setBus(boolean bus)
public void setFerry(boolean ferry)
public void setCableCar(boolean cableCar)
public void setGondola(boolean gondola)
public void setFunicular(boolean funicular)
public void setSubway(boolean subway)
public void setRail(boolean rail)
public void setAirplane(boolean airplane)
public boolean isTransit()
public void setTransit(boolean transit)
public TraverseModeSet getNonTransitSet()
public List<TraverseMode> getModes()
public boolean isValid()
public boolean contains(TraverseMode mode)
public boolean get(int modeMask)
public String getAsStr()
public TraverseModeSet clone()
public void clear()
Copyright © 2019. All rights reserved.