net.sf.saxon.z

## 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 Summary

    Constructors
    Constructor and Description
    `IntUnionPredicate(IntPredicate p1, IntPredicate p2)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `IntPredicate[]` | `getOperands()` Get the operands
    `boolean` | `matches(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`

- - ### Constructor Detail

    - #### IntUnionPredicate

          public IntUnionPredicate(IntPredicate p1,
                           IntPredicate p2)

  - ### Method Detail

    - #### matches

          public boolean matches(int value)

      Ask whether a given value matches this predicate
      Specified by:
        `matches` 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

Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.