Class OneOfType.Value
- java.lang.Object
-
- org.apache.beam.sdk.schemas.logicaltypes.OneOfType.Value
-
- Enclosing class:
- OneOfType
public static class OneOfType.Value extends java.lang.Object
Represents a single OneOf value. Each object contains anEnumerationType.Value
specifying which field is set along with the value of that field.
-
-
Constructor Summary
Constructors Constructor Description Value(EnumerationType.Value caseType, java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(@Nullable 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()
-
-
-
Constructor Detail
-
Value
public Value(EnumerationType.Value caseType, java.lang.Object value)
-
-
Method Detail
-
getCaseType
public EnumerationType.Value getCaseType()
Returns the enumeration that specified which OneOf field is set.
-
getValue
public <T> T getValue(java.lang.Class<T> clazz)
Returns the current value of the OneOf as the destination type.
-
getValue
public java.lang.Object getValue()
Returns the current value of the OneOf.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(@Nullable java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-