Google 致力于为黑人社区推动种族平等。查看具体举措

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