xor

open infix fun xor(other: RetryPredicate): RetryPredicate

Combines this predicate with another using logical XOR (exclusive OR).

Truth Table

A | B | A XOR B
---------------
0 | 0 | 0
0 | 1 | 1
1 | 0 | 1
1 | 1 | 0

Usage

val predicateC = predicateA xor predicateB

Return

a RetryPredicate that returns true only if exactly one predicate returns true.

Since

1.0.0

Parameters

other

The other RetryPredicate to be combined with.