Class Delta

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

public final class Delta extends Object
Understands a finite increment in a variable.
Since:
1.1
  • Field Details

    • value

      private final Double value
  • Constructor Details

    • Delta

      private Delta(double value)
  • Method Details

    • 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