Class IntValuePredicate

  • All Implemented Interfaces:
    IntPredicate

    public class IntValuePredicate
    extends Object
    implements IntPredicate
    An IntPredicate that matches a single specific integer
    • Constructor Detail

      • IntValuePredicate

        public IntValuePredicate​(int target)
    • Method Detail

      • test

        public boolean test​(int value)
        Ask whether a given value matches this predicate
        Specified by:
        test in interface IntPredicate
        Parameters:
        value - the value to be tested
        Returns:
        true if the value matches; false if it does not
      • getTarget

        public int getTarget()
        Get the value matched by this predicate
        Returns:
        the value that this predicate matches