public final class RgbColor extends Object
Modifier and Type | Field and Description |
---|---|
int |
b
The blue component of this color.
|
int |
g
The green component of this color.
|
int |
r
The red component of this color.
|
Modifier and Type | Method and Description |
---|---|
static RgbColor |
color(int rgb)
Creates a new
. |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isEqualTo(RgbColor color,
org.assertj.core.data.Offset<Integer> offset)
Indicates whether the given
is equal to this one. |
String |
toString() |
public final int r
public final int g
public final int b
public static RgbColor color(int rgb)
RgbColor
.rgb
- a value representing a RGB combination.public boolean isEqualTo(RgbColor color, org.assertj.core.data.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
.Copyright © 2014–2019 AssertJ. All rights reserved.