Class DynamicEnum.Value

  • Enclosing class:
    DynamicEnum

    public static final class DynamicEnum.Value
    extends Object
    A value of a given enumeration.
    • Method Detail

      • name

        public String name()
        Return the name of the value.
        Returns:
        the name of the value.
      • ordinal

        public int ordinal()
        Return the ordinal of the value.
        Returns:
        the ordinal of the value.
      • equals

        public boolean equals​(Object o)
        Equals is defined to use identity-equality.
        Overrides:
        equals in class Object
        See Also:
        DynamicEnum#DynamicEnum()
      • hashCode

        public int hashCode()
        Hashcode is defined to use identity-equality.
        Overrides:
        hashCode in class Object
        See Also:
        DynamicEnum#DynamicEnum()
      • toString

        public String toString()
        Returns a string value of the name of the value or "null" for null names.
        Overrides:
        toString in class Object