public enum EmbassyStatus extends Enum<EmbassyStatus>
| Modifier and Type | Class and Description |
|---|---|
static class |
EmbassyStatus.Adapter
Converts a String to an EmbassyStatus, and vice versa.
|
| Enum Constant and Description |
|---|
CLOSING |
DENIED |
ESTABLISHED |
INVITED |
PENDING |
REJECTED |
REQUESTED |
| Modifier and Type | Method and Description |
|---|---|
static EmbassyStatus |
fromString(String underlying)
Returns the EmbassyStatus with the supplied underlying string.
|
String |
toString()
Return the underlying string.
|
static EmbassyStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EmbassyStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmbassyStatus INVITED
public static final EmbassyStatus REQUESTED
public static final EmbassyStatus PENDING
public static final EmbassyStatus REJECTED
public static final EmbassyStatus DENIED
public static final EmbassyStatus CLOSING
public static final EmbassyStatus ESTABLISHED
public static EmbassyStatus[] values()
for (EmbassyStatus c : EmbassyStatus.values()) System.out.println(c);
public static EmbassyStatus 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 static EmbassyStatus fromString(String underlying)
underlying - string to find the EmbassyStatus ofpublic String toString()
toString in class Enum<EmbassyStatus>Copyright © 2017. All rights reserved.