Class IntSetPredicate

java.lang.Object
net.sf.saxon.z.IntSetPredicate
All Implemented Interfaces:
IntPredicate, IntPredicateProxy

public class IntSetPredicate extends Object implements IntPredicateProxy
An implementation of IntPredicate that tests whether a given integer is a member of some IntSet
  • Field Details

    • ALWAYS_TRUE

      public static final IntPredicateProxy ALWAYS_TRUE
      Convenience predicate that always matches
    • ALWAYS_FALSE

      public static final IntPredicateProxy ALWAYS_FALSE
      Convenience predicate that never matches
  • Constructor Details

    • IntSetPredicate

      public IntSetPredicate(IntSet set)
  • Method Details

    • test

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

      public IntSet getIntSet()
      Get the underlying IntSet
      Returns:
      the underlying IntSet
    • toString

      public String toString()
      Get string representation
      Overrides:
      toString in class Object