Class ConstantResolver.UnknownConstant

  • All Implemented Interfaces:
    Constant, Constant
    Enclosing class:
    ConstantResolver<E extends java.lang.Enum<E>>

    private static final class ConstantResolver.UnknownConstant
    extends java.lang.Object
    implements Constant
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
      private int value  
    • Constructor Summary

      Constructors 
      Constructor Description
      UnknownConstant​(int value, java.lang.String name)  
    • Field Detail

      • value

        private final int value
      • name

        private final java.lang.String name
    • Constructor Detail

      • UnknownConstant

        UnknownConstant​(int value,
                        java.lang.String name)
    • Method Detail

      • value

        public int value()
        Specified by:
        value in interface Constant
      • intValue

        public int intValue()
        Specified by:
        intValue in interface Constant
      • longValue

        public long longValue()
        Specified by:
        longValue in interface Constant
      • name

        public java.lang.String name()
        Specified by:
        name in interface Constant
      • defined

        public boolean defined()
        Specified by:
        defined in interface Constant
      • toString

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