net.sf.saxon.z

## Class IntComplementPredicate

- java.lang.Object
- - net.sf.saxon.z.IntComplementPredicate

- All Implemented Interfaces:
    IntPredicate

      public class IntComplementPredicate
      extends Object
      implements IntPredicate

  An IntPredicate formed as the complement of another predicate; it matches an integer if the operand does not, and vice versa.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IntComplementPredicate(IntPredicate p1)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `IntPredicate` | `getOperand()` Get the operand
    `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

    - #### IntComplementPredicate

          public IntComplementPredicate(IntPredicate p1)

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

    - #### getOperand

          public IntPredicate getOperand()

      Get the operand
      Returns:
        the negated predicate

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