Class IconExe.RGB
- java.lang.Object
-
- org.eclipse.pde.internal.swt.tools.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 RGBint
green
the green component of the RGBint
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.
-
-
-
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
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
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 instancegreen
- the green component of the new instanceblue
- 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 classjava.lang.Object
- Parameters:
object
- the object to compare with this object- Returns:
true
if the object is the same as this object andfalse
otherwise- See Also:
hashCode()
-
hashCode
public int hashCode()
Returns an integer hash code for the receiver. Any two objects which returntrue
when passed toequals
must return the same value for this method.- Overrides:
hashCode
in classjava.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 classjava.lang.Object
- Returns:
- a string representation of the
RGB
-
-