public enum TransportStatus extends Enum<TransportStatus>
Enum Constant and Description |
---|
CUSTOM |
ERROR_OCCURRED |
OK |
Modifier and Type | Method and Description |
---|---|
String |
getValue() |
TransportStatus |
setValue(String value) |
static TransportStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransportStatus |
valueOrCustomOf(String s) |
static TransportStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransportStatus OK
public static final TransportStatus ERROR_OCCURRED
public static final TransportStatus CUSTOM
public static TransportStatus[] values()
for (TransportStatus c : TransportStatus.values()) System.out.println(c);
public static TransportStatus 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 String getValue()
public TransportStatus setValue(String value)
public static TransportStatus valueOrCustomOf(String s)
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.