public enum LegMode extends Enum<LegMode>
Enum Constant and Description |
---|
BICYCLE |
BICYCLE_RENT |
CAR |
CAR_PARK |
WALK |
Modifier and Type | Method and Description |
---|---|
static StreetMode |
getDominantStreetMode(Set<LegMode> modes)
Return the heaviest/fastest StreetMode for use in stop finding
|
static StreetMode |
toStreetMode(LegMode legMode)
Convert between these two enum types
|
static EnumSet<StreetMode> |
toStreetModeSet(EnumSet<LegMode>... legModeSets) |
static LegMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LegMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LegMode WALK
public static final LegMode BICYCLE
public static final LegMode CAR
public static final LegMode BICYCLE_RENT
public static final LegMode CAR_PARK
public static LegMode[] values()
for (LegMode c : LegMode.values()) System.out.println(c);
public static LegMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static StreetMode getDominantStreetMode(Set<LegMode> modes)
public static StreetMode toStreetMode(LegMode legMode)
public static EnumSet<StreetMode> toStreetModeSet(EnumSet<LegMode>... legModeSets)
Copyright © 2019. All rights reserved.