|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.assertions.data.Offset<T>
T
- the type of the offset value.public class Offset<T extends Number>
A positive offset.
Field Summary | |
---|---|
T |
value
The value of this offset. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
static Offset<Double> |
offset(Double value)
Creates a new double Offset . |
static Offset<Float> |
offset(Float value)
Creates a new float Offset . |
static Offset<Integer> |
offset(Integer value)
Creates a new integer Offset . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final T extends Number value
Method Detail |
---|
public static Offset<Double> offset(Double value)
Offset
.
value
- the value of the offset.
Offset
.
NullPointerException
- if the given value is null
.
IllegalArgumentException
- if the given value is negative.public static Offset<Float> offset(Float value)
Offset
.
value
- the value of the offset.
Offset
.
NullPointerException
- if the given value is null
.
IllegalArgumentException
- if the given value is negative.public static Offset<Integer> offset(Integer value)
Offset
.
value
- the value of the offset.
Offset
.
NullPointerException
- if the given value is null
.
IllegalArgumentException
- if the given value is negative.public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
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 |