Class EnumerationType.Value

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    EnumerationType

    public static class EnumerationType.Value
    extends java.lang.Object
    implements java.io.Serializable
    This class represents a single enum value. It can be referenced as a String or as an integer.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Value​(int value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(@Nullable java.lang.Object o)  
      int getValue()
      Return the integer enum value.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Value

        public Value​(int value)
    • Method Detail

      • getValue

        public int getValue()
        Return the integer enum value.
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object