A
- the type of the first alternativeB
- the type of the second alternativeC
- the type of the third alternativeD
- the type of the fourth alternativeE
- the type of the fifth alternativepublic class EitherOf5<A extends com.google.protobuf.Message,B extends com.google.protobuf.Message,C extends com.google.protobuf.Message,D extends com.google.protobuf.Message,E extends com.google.protobuf.Message> extends Either
Modifier and Type | Method and Description |
---|---|
A |
getA()
Obtains the value of the first alternative.
|
B |
getB()
Obtains the value of the second alternative.
|
C |
getC()
Obtains the value of the third alternative.
|
D |
getD()
Obtains the value of the third alternative.
|
E |
getE()
Obtains the fifth element of the tuple.
|
static <A extends com.google.protobuf.Message,B extends com.google.protobuf.Message,C extends com.google.protobuf.Message,D extends com.google.protobuf.Message,E extends com.google.protobuf.Message> |
withA(A a)
Creates a new instance with
<A> value. |
static <A extends com.google.protobuf.Message,B extends com.google.protobuf.Message,C extends com.google.protobuf.Message,D extends com.google.protobuf.Message,E extends com.google.protobuf.Message> |
withB(B b)
Creates a new instance with
<B> value. |
static <A extends com.google.protobuf.Message,B extends com.google.protobuf.Message,C extends com.google.protobuf.Message,D extends com.google.protobuf.Message,E extends com.google.protobuf.Message> |
withC(C c)
Creates a new instance with
<C> value. |
static <A extends com.google.protobuf.Message,B extends com.google.protobuf.Message,C extends com.google.protobuf.Message,D extends com.google.protobuf.Message,E extends com.google.protobuf.Message> |
withD(D d)
Creates a new instance with
<D> value. |
static <A extends com.google.protobuf.Message,B extends com.google.protobuf.Message,C extends com.google.protobuf.Message,D extends com.google.protobuf.Message,E extends com.google.protobuf.Message> |
withE(E e)
Creates a new instance with
<E> value. |
equals, get, hashCode, index, iterator, value
public static <A extends com.google.protobuf.Message,B extends com.google.protobuf.Message,C extends com.google.protobuf.Message,D extends com.google.protobuf.Message,E extends com.google.protobuf.Message> EitherOf5<A,B,C,D,E> withA(A a)
<A>
value.public static <A extends com.google.protobuf.Message,B extends com.google.protobuf.Message,C extends com.google.protobuf.Message,D extends com.google.protobuf.Message,E extends com.google.protobuf.Message> EitherOf5<A,B,C,D,E> withB(B b)
<B>
value.public static <A extends com.google.protobuf.Message,B extends com.google.protobuf.Message,C extends com.google.protobuf.Message,D extends com.google.protobuf.Message,E extends com.google.protobuf.Message> EitherOf5<A,B,C,D,E> withC(C c)
<C>
value.public static <A extends com.google.protobuf.Message,B extends com.google.protobuf.Message,C extends com.google.protobuf.Message,D extends com.google.protobuf.Message,E extends com.google.protobuf.Message> EitherOf5<A,B,C,D,E> withD(D d)
<D>
value.public static <A extends com.google.protobuf.Message,B extends com.google.protobuf.Message,C extends com.google.protobuf.Message,D extends com.google.protobuf.Message,E extends com.google.protobuf.Message> EitherOf5<A,B,C,D,E> withE(E e)
<E>
value.public A getA()
java.lang.IllegalStateException
- if a value of another type is stored instead.public B getB()
java.lang.IllegalStateException
- if a value of another type is stored instead.public C getC()
java.lang.IllegalStateException
- if a value of another type is stored instead.public D getD()
java.lang.IllegalStateException
- if a value of another type is stored instead.public E getE()