public static enum CancellationInfo.Party extends Enum<CancellationInfo.Party>
Enum Constant and Description |
---|
DEMANDER
The demander cancelled the ride.
|
SUPPLIER
The supplier cancelled the ride.
|
UNKNOWN
The cancelling party is unknown.
|
Modifier and Type | Method and Description |
---|---|
static CancellationInfo.Party |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CancellationInfo.Party[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CancellationInfo.Party UNKNOWN
public static final CancellationInfo.Party DEMANDER
public static final CancellationInfo.Party SUPPLIER
public static CancellationInfo.Party[] values()
for (CancellationInfo.Party c : CancellationInfo.Party.values()) System.out.println(c);
public static CancellationInfo.Party 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 null