sdk-common / com.tomtom.online.sdk.common.functional / Predicates / instanceOf
instanceOf
static fun <R : Any!, T : Any!> instanceOf(@NonNull type: Class<T>): Predicate<R>!
Returns a predicate checking if value is instance of the given type.
Parameters
type
- Class<T>: instance of Class
describing the checked type.
- checked type.
- type of the checked value.
Exceptions
NullPointerException
- if the argument passed is null.
Return
Predicate<R>!: instance of Predicate
.