Class OneOfType.Value

  • Enclosing class:
    OneOfType

    public static class OneOfType.Value
    extends java.lang.Object
    Represents a single OneOf value. Each object contains an EnumerationType.Value specifying which field is set along with the value of that field.
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 class java.lang.Object
      • equals

        public boolean equals​(@Nullable java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object