Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

Predicate

public interface Predicate

androidx.core.util.Predicate<T>


Compat version of Predicate

Summary

Public methods

abstract boolean test(T t)

Evaluates this predicate on the given argument.

Public methods

test

public abstract boolean test (T t)

Evaluates this predicate on the given argument.

Parameters
t T: the input argument

Returns
boolean true if the input argument matches the predicate, otherwise false