Class Enum

    • 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.
      protected java.lang.Object readResolve()  
      java.lang.String toString()  
      void write​(java.io.ObjectOutputStream out)
      Writes this object to an ObjectOutputStream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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
      • 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