Interface Predicate<T>

Type Parameters:
T - the first value
All Known Subinterfaces:
AppendOnlyLinkedArrayList.NonThrowingPredicate<T>
All Known Implementing Classes:
BehaviorProcessor.BehaviorSubscription, BehaviorSubject.BehaviorDisposable, Functions.BooleanSupplierPredicateReverse, Functions.ClassFilter, Functions.EqualsPredicate, Functions.FalsePredicate, Functions.TruePredicate, SerializedSubject
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 Predicate<@NonNull T>
A functional interface (callback) that returns true or false for the given input value.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Test the given input value and return a boolean.
  • Method Details

    • test

      boolean test(@NonNull T t) throws Throwable
      Test the given input value and return a boolean.
      Parameters:
      t - the value
      Returns:
      the boolean result
      Throws:
      Throwable - if the implementation wishes to throw any type of exception