- createLeft
Creates an instance of Left.
- createRight
Creates an instance of Right.
- fold
Applies either the left or the right function as appropriate.
- getLeft
Returns the left side. Throws an exception if it's really a Right.
- getRight
Returns the right side. Throws an exception if it's really a Left.
- isLeft
True if it's left.
- isRight
True if it's right.
- acceptBoth
Accepts both the left and right consumers, using the default values to set the
empty side.
- asOptionalLeft
Returns the left side as an Optional.
- asOptionalRight
Returns the right side as an Optional.
- create
Creates a left or right, depending on which element is non-null. Precisely one
element should be non
- mapLeft