Class IntPredicate

  • All Implemented Interfaces:
    Predicate<Integer>

    public abstract class IntPredicate
    extends Object
    implements Predicate<Integer>
    A predicate that checks if some value leads to true or false.
    • Constructor Detail

      • IntPredicate

        public IntPredicate()
    • Method Detail

      • newEqualsPredicate

        public static IntPredicate newEqualsPredicate​(int value)
      • newNotEqualsPredicate

        public static IntPredicate newNotEqualsPredicate​(int value)
      • newLargerThanPredicate

        public static IntPredicate newLargerThanPredicate​(int value)
      • newLargerThanOrEqualsPredicate

        public static IntPredicate newLargerThanOrEqualsPredicate​(int value)
      • newSmallerThanPredicate

        public static IntPredicate newSmallerThanPredicate​(int value)
      • newSmallerThanOrEqualsPredicate

        public static IntPredicate newSmallerThanOrEqualsPredicate​(int value)
      • evaluate

        public abstract boolean evaluate​(int current)
        Evaluates the predicate
        Parameters:
        current - the current value.
        Returns:
        true or false.
      • evaluate

        public final boolean evaluate​(Integer arg)
        Description copied from interface: Predicate
        Evaluates the predicate.
        Specified by:
        evaluate in interface Predicate<Integer>
        Parameters:
        arg - the value to evaluate.
        Returns:
        true or false.