Class IntValuePredicate

  • All Implemented Interfaces:
    java.util.function.IntPredicate, IntPredicateProxy

    public class IntValuePredicate
    extends java.lang.Object
    implements IntPredicateProxy
    An IntPredicate that matches a single specific integer
    • Constructor Summary

      Constructor Description
      IntValuePredicate​(int target)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getTarget()
      Get the value matched by this predicate
      boolean test​(int value)
      Ask whether a given value matches this predicate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.IntPredicate

        and, negate, or
    • 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 java.util.function.IntPredicate
        Specified by:
        test in interface IntPredicateProxy
        value - the value to be tested
        true if the value matches; false if it does not
      • getTarget

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