public static class OneOfType.Value
extends java.lang.Object
EnumerationType.Value
specifying which field is set along with the value of that field.Constructor and Description |
---|
Value(EnumerationType.Value caseType,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
EnumerationType.Value |
getCaseType()
Returns the enumeration that specified which OneOf field is set.
|
java.lang.Object |
getValue()
Returns the current value of the OneOf.
|
<T> T |
getValue(java.lang.Class<T> clazz)
Returns the current value of the OneOf as the destination type.
|
int |
hashCode() |
java.lang.String |
toString() |
public Value(EnumerationType.Value caseType, java.lang.Object value)
public EnumerationType.Value getCaseType()
public <T> T getValue(java.lang.Class<T> clazz)
public java.lang.Object getValue()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object