Class IntUnionPredicate

java.lang.Object
net.sf.saxon.z.IntUnionPredicate
All Implemented Interfaces:
IntPredicate

public class IntUnionPredicate extends Object implements IntPredicate
An IntPredicate formed as the union of two other predicates: it matches an integer if either of the operands matches the integer
  • Constructor Details

  • Method Details

    • 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
    • getOperands

      public IntPredicate[] getOperands()
      Get the operands
      Returns:
      an array containing the two operands
    • toString

      public String toString()
      Overrides:
      toString in class Object