Class StringEnumAbstractBase.Table

  • Enclosing class:
    StringEnumAbstractBase

    public static final class StringEnumAbstractBase.Table
    extends java.lang.Object
    Used to manage singleton instances of enumerations. Each subclass of StringEnumAbstractBase has an instance of a table to hold the singleton instances.
    • Method Detail

      • forString

        public StringEnumAbstractBase forString​(java.lang.String s)
        Returns the singleton for a String, or null if none.
      • forInt

        public StringEnumAbstractBase forInt​(int i)
        Returns the singleton for an int code, or null if none.
      • lastInt

        public int lastInt()
        Returns the last valid int code (the first is 1; zero is not used).