public enum TripFlag extends Enum<TripFlag>
Enum Constant and Description |
---|
BICYCLE |
WHEELCHAIR |
Modifier and Type | Method and Description |
---|---|
static TripFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TripFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TripFlag BICYCLE
public static final TripFlag WHEELCHAIR
public static TripFlag[] values()
for (TripFlag c : TripFlag.values()) System.out.println(c);
public static TripFlag 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 nullCopyright © 2015. All rights reserved.