Class Xor<L,R>
java.lang.Object
com.suse.salt.netapi.utils.Xor<L,R>
- Type Parameters:
L- type of the left valueR- type of the right value
Right biased disjunction mainly based on the Xor type from scala cats library.
This type is used for collecting salt errors that are in the place of a normal result.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Xor
public Xor()
-
-
Method Details
-
left
-
right
-
isRight
public abstract boolean isRight() -
isLeft
public abstract boolean isLeft() -
fold
-
consume
-
map
-
flatMap
-
left
-
right
-
orElse
-
getOrElse
-
exists
-
option
-