Class Threshold

java.lang.Object
org.fest.assertions.Threshold

public final class Threshold extends Object
Understands a threshold.
Since:
1.1
  • Field Details

    • value

      private final int value
  • Constructor Details

    • Threshold

      private Threshold(int value)
  • Method Details

    • threshold

      public static Threshold threshold(int value)
      Creates a new Threshold.
      Parameters:
      value - the value of the threshold.
      Returns:
      the created instance.
      Throws:
      IllegalArgumentException - if the given value is less than zero.
    • value

      public int value()