The Android Developer Challenge is back! Submit your idea before December 2.

Predicate

interface Predicate<T : Any!>
androidx.core.util.Predicate

Compat version of java.util.function.Predicate

Summary

Public methods

abstract Boolean
test(t: T)

Evaluates this predicate on the given argument.

Public methods

test

abstract fun test(t: T): Boolean

Evaluates this predicate on the given argument.

Parameters
t T: the input argument
Return
Boolean: true if the input argument matches the predicate, otherwise false