Package com.fa993.types.supertype
Class Either
- java.lang.Object
-
- com.fa993.types.supertype.Either
-
public class Either extends Object
A utility class representing an exclusive choice between two or three possible types.The
Eitherclass contains nested classes to handle either two or three alternatives. TheEither.Selectorenum is used to indicate which option is currently selected.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEither.OfThree<A,B,C>Represents an exclusive choice between three possible types.static classEither.OfTwo<A,B>Represents an exclusive choice between two possible types.static classEither.SelectorEnum representing the possible choices: First, Second, or Third.
-