public final class Septet<A,B,C,D,E,F,G> extends Tuple implements IValue0<A>, IValue1<B>, IValue2<C>, IValue3<D>, IValue4<E>, IValue5<F>, IValue6<G>
A tuple of seven elements.
| Constructor and Description |
|---|
Septet(A value0,
B value1,
C value2,
D value3,
E value4,
F value5,
G value6) |
| Modifier and Type | Method and Description |
|---|---|
static <X> Septet<X,X,X,X,X,X,X> |
fromArray(X[] array)
Create tuple from array.
|
static <X> Septet<X,X,X,X,X,X,X> |
fromCollection(java.util.Collection<X> collection)
Create tuple from collection.
|
static <X> Septet<X,X,X,X,X,X,X> |
fromIterable(java.lang.Iterable<X> iterable)
Create tuple from iterable.
|
static <X> Septet<X,X,X,X,X,X,X> |
fromIterable(java.lang.Iterable<X> iterable,
int index)
Create tuple from iterable, starting from the specified index.
|
int |
getSize()
Return the size of the tuple.
|
A |
getValue0() |
B |
getValue1() |
C |
getValue2() |
D |
getValue3() |
E |
getValue4() |
F |
getValue5() |
G |
getValue6() |
static <A,B,C,D,E,F,G> |
with(A value0,
B value1,
C value2,
D value3,
E value4,
F value5,
G value6) |
compareTo, contains, containsAll, containsAll, equals, from, getValue, hashCode, indexOf, iterator, lastIndexOf, readFromByteBufStream, toArray, toList, toString, writeToByteBufStreampublic static <A,B,C,D,E,F,G> Septet<A,B,C,D,E,F,G> with(A value0, B value1, C value2, D value3, E value4, F value5, G value6)
public static <X> Septet<X,X,X,X,X,X,X> fromArray(X[] array)
Create tuple from array. Array has to have exactly seven elements.
X - the array component typearray - the array to be converted to a tuplepublic static <X> Septet<X,X,X,X,X,X,X> fromCollection(java.util.Collection<X> collection)
Create tuple from collection. Collection has to have exactly seven elements.
X - the collection component typecollection - the collection to be converted to a tuplepublic static <X> Septet<X,X,X,X,X,X,X> fromIterable(java.lang.Iterable<X> iterable)
Create tuple from iterable. Iterable has to have exactly seven elements.
X - the iterable component typeiterable - the iterable to be converted to a tuplepublic static <X> Septet<X,X,X,X,X,X,X> fromIterable(java.lang.Iterable<X> iterable, int index)
Create tuple from iterable, starting from the specified index. Iterable can have more (or less) elements than the tuple to be created.
X - the iterable component typeiterable - the iterable to be converted to a tuple