public class OneOf3<T,R,S>
extends Object
Container class to hold the three code instances and exactly one is present.
-
Method Summary
<X> X
static <T,
R,
S> OneOf3<T,R,S>
static <T,
R,
S> OneOf3<T,R,S>
static <T,
R,
S> OneOf3<T,R,S>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
ofFirst
public static <T,
R,
S> OneOf3<T,R,S> ofFirst(T first)
-
ofSecond
public static <T,
R,
S> OneOf3<T,R,S> ofSecond(R second)
-
ofThird
public static <T,
R,
S> OneOf3<T,R,S> ofThird(S third)
-