public enum OnlineStatus extends java.lang.Enum<OnlineStatus>
User
.Modifier and Type | Method and Description |
---|---|
static OnlineStatus |
fromKey(java.lang.String key)
Will get the
OnlineStatus from the provided key.If the provided key does no match a presence, this will return UNKONWN |
static OnlineStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OnlineStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OnlineStatus ONLINE
public static final OnlineStatus AWAY
public static final OnlineStatus OFFLINE
public static final OnlineStatus UNKNOWN
public static OnlineStatus[] values()
for (OnlineStatus c : OnlineStatus.values()) System.out.println(c);
public static OnlineStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static OnlineStatus fromKey(java.lang.String key)
OnlineStatus
from the provided key.UNKONWN
key
- The key relating to the OnlineStatus
we wish to retrieve.OnlineStatus
. If there is no match, returns UNKONWN
.