Class IconExe.RGB

  • Enclosing class:
    IconExe

    static class IconExe.RGB
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int blue
      the blue component of the RGB
      int green
      the green component of the RGB
      int red
      the red component of the RGB
      (package private) static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      RGB​(int red, int green, int blue)
      Constructs an instance of this class with the given red, green and blue values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)
      Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
      int hashCode()
      Returns an integer hash code for the receiver.
      java.lang.String toString()
      Returns a string containing a concise, human-readable description of the receiver.
      • Methods inherited from class java.lang.Object

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

      • red

        public int red
        the red component of the RGB
      • green

        public int green
        the green component of the RGB
      • blue

        public int blue
        the blue component of the RGB
    • Constructor Detail

      • RGB

        public RGB​(int red,
                   int green,
                   int blue)
        Constructs an instance of this class with the given red, green and blue values.
        Parameters:
        red - the red component of the new instance
        green - the green component of the new instance
        blue - the blue component of the new instance
        Throws:
        java.lang.IllegalArgumentException -
        • ERROR_INVALID_ARGUMENT - if the red, green or blue argument is not between 0 and 255
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object object)
        Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        object - the object to compare with this object
        Returns:
        true if the object is the same as this object and false otherwise
        See Also:
        hashCode()
      • hashCode

        public int hashCode()
        Returns an integer hash code for the receiver. Any two objects which return true when passed to equals must return the same value for this method.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the receiver's hash
        See Also:
        equals(Object)
      • toString

        public java.lang.String toString()
        Returns a string containing a concise, human-readable description of the receiver.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of the RGB