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 intbluethe blue component of the RGBintgreenthe green component of the RGBintredthe red component of the RGB(package private) static longserialVersionUID
-
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 booleanequals(java.lang.Object object)Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.inthashCode()Returns an integer hash code for the receiver.java.lang.StringtoString()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:
equalsin classjava.lang.Object- Parameters:
object- the object to compare with this object- Returns:
trueif the object is the same as this object andfalseotherwise- See Also:
hashCode()
-
hashCode
public int hashCode()
Returns an integer hash code for the receiver. Any two objects which returntruewhen passed toequalsmust return the same value for this method.- Overrides:
hashCodein 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:
toStringin classjava.lang.Object- Returns:
- a string representation of the
RGB
-
-