Class ARGBChannel

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ARGBChannel
    extends java.lang.Object
    implements java.io.Serializable
    Enumerated type for an ARGB Channel selector.
    Version:
    $Id: ARGBChannel.java 1808888 2017-09-19 14:22:11Z ssteiner $
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ARGBChannel​(int val, java.lang.String desc)
      Constructor is private so that no instances other than the ones in the enumeration can be created.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object readResolve()
      This is called by the serialization code before it returns an unserialized object.
      int toInt()
      Convenience for enumeration switching
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • ARGBChannel

        private ARGBChannel​(int val,
                            java.lang.String desc)
        Constructor is private so that no instances other than the ones in the enumeration can be created.
        See Also:
        readResolve()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        description
      • toInt

        public int toInt()
        Convenience for enumeration switching
        Returns:
        value
      • readResolve

        public java.lang.Object readResolve()
        This is called by the serialization code before it returns an unserialized object. To provide for unicity of instances, the instance that was read is replaced by its static equivalent