org.fest.assertions
Class Delta

java.lang.Object
  extended by org.fest.assertions.Delta

public final class Delta
extends Object

Understands a finite increment in a variable.

Since:
1.1
Author:
Alex Ruiz

Method Summary
static Delta delta(double value)
          Creates a new Delta.
static Delta delta(float value)
          Creates a new Delta.
 double doubleValue()
          Returns the value of this delta as a double.
 float floatValue()
          Returns the value of this delta as a float.
 double value()
          Deprecated. use doubleValue() instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

delta

public static Delta delta(double value)
Creates a new Delta.

Parameters:
value - the value of the delta.
Returns:
the created Delta.

delta

public static Delta delta(float value)
Creates a new Delta.

Parameters:
value - the value of the delta.
Returns:
the created Delta.

value

@Deprecated
public double value()
Deprecated. use doubleValue() instead.

Returns the value of this delta.

Returns:
the value of this delta.

doubleValue

public double doubleValue()
Returns the value of this delta as a double.

Returns:
the value of this delta as a double.
Since:
1.2

floatValue

public float floatValue()
Returns the value of this delta as a float.

Returns:
the value of this delta as a float.
Since:
1.2


Copyright © 2007-2010 FEST (Fixtures for Easy Software Testing). All Rights Reserved.