Class OneOfType.Value

java.lang.Object
org.apache.beam.sdk.schemas.logicaltypes.OneOfType.Value
Enclosing class:
OneOfType

public static class OneOfType.Value extends Object
Represents a single OneOf value. Each object contains an EnumerationType.Value specifying which field is set along with the value of that field.
  • Constructor Details

  • Method Details

    • getCaseType

      public EnumerationType.Value getCaseType()
      Returns the enumeration that specified which OneOf field is set.
    • getValue

      public <T> T getValue(Class<T> clazz)
      Returns the current value of the OneOf as the destination type.
    • getValue

      public Object getValue()
      Returns the current value of the OneOf.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object