public static enum CancellationFeePolicy.Type extends Enum<CancellationFeePolicy.Type>
Enum Constant and Description |
---|
STATUS_LIMIT
Cancellation fee applies if ride cancelled after a specific status
|
TIME_LIMIT
Cancellation fee applies if ride cancelled too close to start time
|
Modifier and Type | Method and Description |
---|---|
static CancellationFeePolicy.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CancellationFeePolicy.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CancellationFeePolicy.Type TIME_LIMIT
public static final CancellationFeePolicy.Type STATUS_LIMIT
public static CancellationFeePolicy.Type[] values()
for (CancellationFeePolicy.Type c : CancellationFeePolicy.Type.values()) System.out.println(c);
public static CancellationFeePolicy.Type 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