Package org.fest.assertions
Class Delta
java.lang.Object
org.fest.assertions.Delta
Understands a finite increment in a variable.
- Since:
- 1.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
-
-
Constructor Details
-
Delta
private Delta(double value)
-
-
Method Details
-
delta
Creates a new.Delta- Parameters:
value- the value of the delta.- Returns:
- the created
Delta.
-
delta
Creates a new.Delta- Parameters:
value- the value of the delta.- Returns:
- the created
Delta.
-
value
Deprecated.useinstead.doubleValue()Returns the value of this delta.- Returns:
- the value of this delta.
-
doubleValue
public double doubleValue()Returns the value of this delta as adouble.- Returns:
- the value of this delta as a
double. - Since:
- 1.2
-
floatValue
public float floatValue()Returns the value of this delta as afloat.- Returns:
- the value of this delta as a
float. - Since:
- 1.2
-
instead.doubleValue()