Class Either3<T1,T2,T3>
- java.lang.Object
-
- org.eclipse.lsp4j.jsonrpc.messages.Either<T1,Either<T2,T3>>
-
- org.eclipse.lsp4j.jsonrpc.messages.Either3<T1,T2,T3>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T1,T2,T3>
Either3<T1,T2,T3>forFirst(T1 first)static <T1,T2,T3>
Either3<T1,T2,T3>forLeft3(T1 first)static <T1,T2,T3>
Either3<T1,T2,T3>forRight3(Either<T2,T3> right)static <T1,T2,T3>
Either3<T1,T2,T3>forSecond(T2 second)static <T1,T2,T3>
Either3<T1,T2,T3>forThird(T3 third)java.lang.Objectget()T1getFirst()T2getSecond()T3getThird()booleanisFirst()booleanisSecond()booleanisThird()<T> Tmap(java.util.function.Function<? super T1,? extends T> mapFirst, java.util.function.Function<? super T2,? extends T> mapSecond, java.util.function.Function<? super T3,? extends T> mapThird)java.lang.StringtoString()-
Methods inherited from class org.eclipse.lsp4j.jsonrpc.messages.Either
collectDisjoinTypes, collectDisjoinTypes, collectDisjoinTypes, equals, forLeft, forRight, getAllDisjoinTypes, getLeft, getLeftDisjointType, getRight, getRightDisjointType, hashCode, isEither, isEither, isEither, isLeft, isRight, map
-
-
-
-
Method Detail
-
forFirst
public static <T1,T2,T3> Either3<T1,T2,T3> forFirst(T1 first)
-
forSecond
public static <T1,T2,T3> Either3<T1,T2,T3> forSecond(T2 second)
-
forThird
public static <T1,T2,T3> Either3<T1,T2,T3> forThird(T3 third)
-
forLeft3
public static <T1,T2,T3> Either3<T1,T2,T3> forLeft3(T1 first)
-
getFirst
public T1 getFirst()
-
getSecond
public T2 getSecond()
-
getThird
public T3 getThird()
-
isFirst
public boolean isFirst()
-
isSecond
public boolean isSecond()
-
isThird
public boolean isThird()
-
map
public <T> T map(java.util.function.Function<? super T1,? extends T> mapFirst, java.util.function.Function<? super T2,? extends T> mapSecond, java.util.function.Function<? super T3,? extends T> mapThird)
-
-