Class StringEnumAbstractBase

    • Constructor Detail

      • StringEnumAbstractBase

        protected StringEnumAbstractBase​(String s,
                                         int i)
        Singleton instances should only be created by subclasses.
    • Method Detail

      • toString

        public final String toString()
        Returns the underlying string value
        Overrides:
        toString in class Object
      • intValue

        public final int intValue()
        Returns an int code that can be used for switch statements
      • hashCode

        public final int hashCode()
        Returns the hash code of the underlying string
        Overrides:
        hashCode in class Object