Interface SerializablePredicate<T>

  • All Superinterfaces:
    Predicate<T>, Serializable
    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 SerializablePredicate<T>
    extends Predicate<T>, Serializable
    A predicate that is also serializable
    • Method Detail

      • or

        default SerializablePredicate<T> or​(SerializablePredicate<? super T> other)
        Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
        Parameters:
        other - a predicate that will be logically-ORed with this predicate
        Returns:
        a composed predicate that represents the short-circuiting logical OR of this predicate and the other predicate
        Throws:
        NullPointerException - if other is null