Interface Predicate<T>

  • Type Parameters:
    T - The type of object to be tested.
    All Known Implementing Classes:
    NullCheckPredicate

    public interface Predicate<T>
    A simple predicate interface.
    • Method Detail

      • matches

        boolean matches​(T object)
        Returns true iff the given object matches the predicate. Note that null values are allowed and implementers are to return either true or false for them instead of throwing exceptions.
        Parameters:
        object - The object to test. May be null.
        Returns:
        true iff the object matches.