@Generated(value="com.palantir.conjure.java.types.EnumGenerator")
@Immutable
public final class ClusterWaitType
extends java.lang.Object
This class is used instead of a native enum to support unknown values.
Rather than throw an exception, the valueOf(java.lang.String) method defaults to a new instantiation of
ClusterWaitType where get() will return ClusterWaitType.Value.UNKNOWN.
For example, ClusterWaitType.valueOf("corrupted value").get() will return ClusterWaitType.Value.UNKNOWN,
but toString() will return "corrupted value".
There is no method to access all instantiations of this class, since they cannot be known at compile time.
| Modifier and Type | Class and Description |
|---|---|
static class |
ClusterWaitType.Value |
static interface |
ClusterWaitType.Visitor<T> |
| Modifier and Type | Field and Description |
|---|---|
static ClusterWaitType |
NATIVE |
static ClusterWaitType |
USER |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(ClusterWaitType.Visitor<T> visitor) |
boolean |
equals(java.lang.Object other) |
ClusterWaitType.Value |
get() |
int |
hashCode() |
java.lang.String |
toString() |
static ClusterWaitType |
valueOf(java.lang.String value) |
static java.util.List<ClusterWaitType> |
values() |
public static final ClusterWaitType NATIVE
public static final ClusterWaitType USER
public ClusterWaitType.Value get()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static ClusterWaitType valueOf(@Nonnull java.lang.String value)
public <T> T accept(ClusterWaitType.Visitor<T> visitor)
public static java.util.List<ClusterWaitType> values()