|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.assertions.data.RgbColor
public final class RgbColor
A color.
Field Summary | |
---|---|
int |
b
The blue component of this color. |
int |
g
The green component of this color. |
int |
r
The red component of this color. |
Method Summary | |
---|---|
static RgbColor |
color(int rgb)
Creates a new RgbColor . |
boolean |
equals(Object obj)
|
int |
hashCode()
|
boolean |
isEqualTo(RgbColor color,
Offset<Integer> offset)
Indicates whether the given is equal to this one. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final int r
public final int g
public final int b
Method Detail |
---|
public static RgbColor color(int rgb)
RgbColor
.
rgb
- a value representing a RGB combination.
public boolean isEqualTo(RgbColor color, Offset<Integer> offset)
RgbColor
is equal to this one.
color
- the RgbColor
to compare this one to.offset
- used to tolerate a difference between the individual components of the RgbColor
s to compare.
true
if the given RgbColor
is equal to this one; false
otherwise.
NullPointerException
- if the given offset is null
.public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |