Package org.fest.assertions.data
Class Offset<T extends Number>
java.lang.Object
org.fest.assertions.data.Offset<T>
- Type Parameters:
T
- the type of the offset value.
A positive offset.
- Author:
- Alex Ruiz, Yvonne Wang
-
Field Summary
Fields -
Method Summary
-
Field Details
-
value
-
-
Method Details
-
offset
Creates a newOffset
.- Parameters:
value
- the value of the offset.- Returns:
- the created
Offset
. - Throws:
NullPointerException
- if the given value isnull
.IllegalArgumentException
- if the given value is negative.
-
offset
Creates a newOffset
.- Parameters:
value
- the value of the offset.- Returns:
- the created
Offset
. - Throws:
NullPointerException
- if the given value isnull
.IllegalArgumentException
- if the given value is negative.
-
offset
Creates a newOffset
.- Parameters:
value
- the value of the offset.- Returns:
- the created
Offset
. - Throws:
NullPointerException
- if the given value isnull
.IllegalArgumentException
- if the given value is negative.
-
equals
-
hashCode
public int hashCode() -
toString
-