Package threshold.lab

Class GreaterThanThresholdPredicate

java.lang.Object
threshold.lab.GreaterThanThresholdPredicate
All Implemented Interfaces:
IntPredicate

@Immutable public class GreaterThanThresholdPredicate extends Object implements IntPredicate
Author:
__STUDENT_NAME__, Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
  • Constructor Details

    • GreaterThanThresholdPredicate

      public GreaterThanThresholdPredicate​(int threshold)
  • Method Details

    • getThreshold

      public int getThreshold()
    • test

      public boolean test​(int value)
      Specified by:
      test in interface IntPredicate
    • toString

      public String toString()
      Overrides:
      toString in class Object