Interface LongPredicate

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface LongPredicate
A test of one long; the long form of Predicate.
  • Method Summary

    Modifier and Type
    Method
    Description
    Passes when this and other both pass; other is not asked when this fails.
    Passes when this fails.
    Passes when this or other passes; other is not asked when this passes.
    boolean
    test(long value)
    Whether value passes.
  • Method Details

    • test

      boolean test(long value)
      Whether value passes.
      Parameters:
      value - the input
      Returns:
      true when it passes
    • and

      default LongPredicate and(LongPredicate other)
      Passes when this and other both pass; other is not asked when this fails.
      Parameters:
      other - the second test
      Returns:
      the composed test
    • negate

      default LongPredicate negate()
      Passes when this fails.
      Returns:
      the negated test
    • or

      default LongPredicate or(LongPredicate other)
      Passes when this or other passes; other is not asked when this passes.
      Parameters:
      other - the second test
      Returns:
      the composed test