public static enum NetricsPredicate.DistanceUnits extends java.lang.Enum<NetricsPredicate.DistanceUnits>
| Enum Constant and Description |
|---|
KILOMETERS
Distance in Kilometers.
|
MILES
Distance in Miles.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asStr()
Return the string name for this units measure.
|
static NetricsPredicate.DistanceUnits |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NetricsPredicate.DistanceUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetricsPredicate.DistanceUnits KILOMETERS
public static final NetricsPredicate.DistanceUnits MILES
public static NetricsPredicate.DistanceUnits[] values()
for (NetricsPredicate.DistanceUnits c : NetricsPredicate.DistanceUnits.values()) System.out.println(c);
public static NetricsPredicate.DistanceUnits valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String asStr()