public class ClientStatus extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static ClientStatus |
ACTIVE
The client has been created and is active.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ClientStatus()
The default constructor allowing super classes to access it.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object that) |
static ClientStatus |
define(String value)
Define a new client status type
|
boolean |
equals(Object object) |
static ClientStatus |
fromString(String value)
Creates an instance of ClientStatus from
value. |
String |
getValue()
Gets the underlying value of this type safe enumeration.
|
int |
hashCode() |
static List<String> |
literals()
Returns an unmodifiable list containing the literals that are known by this enumeration.
|
String |
toString() |
static void |
undefine(ClientStatus status)
Remove a status type that was previously added via
define(String). |
public static final ClientStatus ACTIVE
The client has been created and is active.
protected ClientStatus()
public static ClientStatus define(String value)
value - the value of the statuspublic static ClientStatus fromString(String value)
value.value - the value to create the ClientStatus from.public static List<String> literals()
public static void undefine(ClientStatus status)
define(String). After undefining
the type fromString will throw an exception if the status to resolve is not known. The
built-in types cannot be undefined.status - the status to removepublic int compareTo(Object that)
Comparable.compareTo(Object)public boolean equals(Object object)
equals in class ObjectObject.equals(Object)public String getValue()
public int hashCode()
hashCode in class ObjectObject.hashCode()public String toString()
toString in class ObjectObject.toString()Copyright © 2019 Communote team. All rights reserved.