A
- the type of the first elementB
- the type of the second elementC
- the type of the third elementD
- the type of the fourth elementE
- the type of the fifth elementpublic final class Quintet<A extends com.google.protobuf.Message,B,C,D,E> extends Tuple
The first element must be a non-default Message
and not Empty
.
Other four can be Message
, Optional
or
Either
.
Modifier and Type | Method and Description |
---|---|
A |
getA()
Obtains the first element of the tuple.
|
B |
getB()
Obtains the second element of the tuple.
|
C |
getC()
Obtains the third element of the tuple.
|
D |
getD()
Obtains the fourth element of the tuple.
|
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> |
of(A a,
B b,
C c,
D d,
E e)
Creates a quintet with all values present.
|
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> |
withNullable(A a,
B b,
C c,
D d,
E e)
Creates a quintet with one optional 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> |
withNullable2(A a,
B b,
C c,
D d,
E e)
Creates a quintet with two optional values.
|
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> |
withNullable3(A a,
B b,
C c,
D d,
E e)
Creates a quintet with three optional values.
|
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> |
withNullable4(A a,
B b,
C c,
D d,
E e)
Creates a quintet with four optional values.
|
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> Quintet<A,B,C,D,E> of(A a, B b, C c, D d, E e)
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> Quintet<A,B,C,D,java.util.Optional<E>> withNullable(A a, B b, C c, D d, E e)
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> Quintet<A,B,C,java.util.Optional<D>,java.util.Optional<E>> withNullable2(A a, B b, C c, D d, E e)
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> Quintet<A,B,java.util.Optional<C>,java.util.Optional<D>,java.util.Optional<E>> withNullable3(A a, B b, C c, D d, E e)
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> Quintet<A,java.util.Optional<B>,java.util.Optional<C>,java.util.Optional<D>,java.util.Optional<E>> withNullable4(A a, B b, C c, D d, E e)
public A getA()
public B getB()
public C getC()
public D getD()
public E getE()