Class Enum

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
      private static long serialVersionUID  
      private int value  
      private static java.util.HashMap VALUE_MAP  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Enum​(int value, java.lang.String name)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static java.lang.Object decode​(java.lang.Class cl, java.io.ObjectInputStream in)  
      java.lang.String getName()
      Return the name of this enum value.
      protected static java.lang.Object getObject​(java.lang.Class cl, int value)  
      int getValue()
      Returns the integer identifier for this enum value.
      private void readObject​(java.io.ObjectInputStream in)  
      protected java.lang.Object readResolve()  
      java.lang.String toString()  
      void write​(java.io.ObjectOutputStream out)
      Writes this object to an ObjectOutputStream.
      private void writeObject​(java.io.ObjectOutputStream out)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • VALUE_MAP

        private static final java.util.HashMap VALUE_MAP
      • value

        private int value
      • name

        private transient java.lang.String name
    • Constructor Detail

      • Enum

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

      • getValue

        public int getValue()
        Returns the integer identifier for this enum value.
        Returns:
        the integer identifier for this enum value
      • getName

        public java.lang.String getName()
        Return the name of this enum value.
        Returns:
        the name of this enum value
      • toString

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

        public void write​(java.io.ObjectOutputStream out)
                   throws java.io.IOException
        Description copied from interface: Writable
        Writes this object to an ObjectOutputStream.
        Specified by:
        write in interface Writable
        Parameters:
        out - the stream
        Throws:
        java.io.IOException - if there is a stream error
      • getObject

        protected static java.lang.Object getObject​(java.lang.Class cl,
                                                    int value)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • writeObject

        private void writeObject​(java.io.ObjectOutputStream out)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readObject

        private void readObject​(java.io.ObjectInputStream in)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • decode

        protected static java.lang.Object decode​(java.lang.Class cl,
                                                 java.io.ObjectInputStream in)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readResolve

        protected java.lang.Object readResolve()
                                        throws java.io.ObjectStreamException
        Throws:
        java.io.ObjectStreamException