Interface IntPredicate

All Superinterfaces:
IntPredicate

public interface IntPredicate extends IntPredicate
An enhanced integer predicate.
Author:
Paul Ferraro
  • Field Details

  • Method Details

    • compose

      default <V> Predicate<V> compose(ToIntFunction<V> mapper)
      Returns a predicate that applies the specified mapping to its argument before evaluating.
      Type Parameters:
      V - the mapped type
      Parameters:
      mapper -
      Returns:
      a mapped predicate
    • composeDouble

      default DoublePredicate composeDouble(DoubleToIntFunction function)
      Returns a predicate that applies the specified function to its argument before evaluating.
      Parameters:
      function - a mapping function
      Returns:
      a mapped predicate
    • composeInt

      default IntPredicate composeInt(IntUnaryOperator function)
      Returns a predicate that applies the specified function to its argument before evaluating.
      Parameters:
      function - a mapping operator
      Returns:
      a mapped predicate
    • composeLong

      default LongPredicate composeLong(LongToIntFunction function)
      Returns a predicate that applies the specified function to its argument before evaluating.
      Parameters:
      function - a mapping function
      Returns:
      a mapped predicate
    • and

      default IntPredicate and(IntPredicate other)
      Specified by:
      and in interface IntPredicate
    • negate

      default IntPredicate negate()
      Specified by:
      negate in interface IntPredicate
    • or

      default IntPredicate or(IntPredicate other)
      Specified by:
      or in interface IntPredicate
    • xor

      default IntPredicate xor(IntPredicate other)
    • of

      static IntPredicate of(boolean result)
      Returns a predicate that always evaluates to the specified result.
      Parameters:
      result - the fixed result
      Returns:
      a predicate that always evaluates to the specified value.
    • lessThan

      static IntPredicate lessThan(int base)
      Returns a predicate that evaluates to true if and only if the argument is equals to the specified object.
      Parameters:
      base - the comparison value
      Returns:
      a predicate that evaluates to true if and only if the argument is equals to the specified object.
    • equalTo

      static IntPredicate equalTo(int base)
      Returns a predicate that evaluates to true if and only if the argument is equals to the specified object.
      Parameters:
      base - the comparison value
      Returns:
      a predicate that evaluates to true if and only if the argument is equals to the specified object.
    • greaterThan

      static IntPredicate greaterThan(int base)
      Returns a predicate that evaluates to true if and only if the argument is equals to the specified object.
      Parameters:
      base - the comparison value
      Returns:
      a predicate that evaluates to true if and only if the argument is equals to the specified object.