sdk-common / com.tomtom.online.sdk.common.functional / Predicate / xor

xor

open fun xor(@NonNull other: Predicate<T>): Predicate<T>!

Performs a predicate composition returning a "logical eXclusive OR". This operation will result with a predicate returning true if two composed predicates differ (one is true, the other is false).

Parameters

other - Predicate<T>: predicate that will be composed with "this" predicate.

Return
Predicate<T>!: a composed predicate (logical eXclusive OR).