|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.javatuples.Tuple org.javatuples.Quartet<A,B,C,D>
public final class Quartet<A,B,C,D>
A tuple of four elements.
Constructor Summary | |
---|---|
Quartet(A value0,
B value1,
C value2,
D value3)
|
Method Summary | ||
---|---|---|
|
add(Pair<X0,X1> tuple)
|
|
|
add(Quartet<X0,X1,X2,X3> tuple)
|
|
|
add(Quintet<X0,X1,X2,X3,X4> tuple)
|
|
|
add(Sextet<X0,X1,X2,X3,X4,X5> tuple)
|
|
|
add(Triplet<X0,X1,X2> tuple)
|
|
|
add(Unit<X0> tuple)
|
|
|
add(X0 value0)
|
|
|
add(X0 value0,
X1 value1)
|
|
|
add(X0 value0,
X1 value1,
X2 value2)
|
|
|
add(X0 value0,
X1 value1,
X2 value2,
X3 value3)
|
|
|
add(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4)
|
|
|
add(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4,
X5 value5)
|
|
|
addAt0(Pair<X0,X1> tuple)
|
|
|
addAt0(Quartet<X0,X1,X2,X3> tuple)
|
|
|
addAt0(Quintet<X0,X1,X2,X3,X4> tuple)
|
|
|
addAt0(Sextet<X0,X1,X2,X3,X4,X5> tuple)
|
|
|
addAt0(Triplet<X0,X1,X2> tuple)
|
|
|
addAt0(Unit<X0> tuple)
|
|
|
addAt0(X0 value0)
|
|
|
addAt0(X0 value0,
X1 value1)
|
|
|
addAt0(X0 value0,
X1 value1,
X2 value2)
|
|
|
addAt0(X0 value0,
X1 value1,
X2 value2,
X3 value3)
|
|
|
addAt0(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4)
|
|
|
addAt0(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4,
X5 value5)
|
|
|
addAt1(Pair<X0,X1> tuple)
|
|
|
addAt1(Quartet<X0,X1,X2,X3> tuple)
|
|
|
addAt1(Quintet<X0,X1,X2,X3,X4> tuple)
|
|
|
addAt1(Sextet<X0,X1,X2,X3,X4,X5> tuple)
|
|
|
addAt1(Triplet<X0,X1,X2> tuple)
|
|
|
addAt1(Unit<X0> tuple)
|
|
|
addAt1(X0 value0)
|
|
|
addAt1(X0 value0,
X1 value1)
|
|
|
addAt1(X0 value0,
X1 value1,
X2 value2)
|
|
|
addAt1(X0 value0,
X1 value1,
X2 value2,
X3 value3)
|
|
|
addAt1(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4)
|
|
|
addAt1(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4,
X5 value5)
|
|
|
addAt2(Pair<X0,X1> tuple)
|
|
|
addAt2(Quartet<X0,X1,X2,X3> tuple)
|
|
|
addAt2(Quintet<X0,X1,X2,X3,X4> tuple)
|
|
|
addAt2(Sextet<X0,X1,X2,X3,X4,X5> tuple)
|
|
|
addAt2(Triplet<X0,X1,X2> tuple)
|
|
|
addAt2(Unit<X0> tuple)
|
|
|
addAt2(X0 value0)
|
|
|
addAt2(X0 value0,
X1 value1)
|
|
|
addAt2(X0 value0,
X1 value1,
X2 value2)
|
|
|
addAt2(X0 value0,
X1 value1,
X2 value2,
X3 value3)
|
|
|
addAt2(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4)
|
|
|
addAt2(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4,
X5 value5)
|
|
|
addAt3(Pair<X0,X1> tuple)
|
|
|
addAt3(Quartet<X0,X1,X2,X3> tuple)
|
|
|
addAt3(Quintet<X0,X1,X2,X3,X4> tuple)
|
|
|
addAt3(Sextet<X0,X1,X2,X3,X4,X5> tuple)
|
|
|
addAt3(Triplet<X0,X1,X2> tuple)
|
|
|
addAt3(Unit<X0> tuple)
|
|
|
addAt3(X0 value0)
|
|
|
addAt3(X0 value0,
X1 value1)
|
|
|
addAt3(X0 value0,
X1 value1,
X2 value2)
|
|
|
addAt3(X0 value0,
X1 value1,
X2 value2,
X3 value3)
|
|
|
addAt3(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4)
|
|
|
addAt3(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4,
X5 value5)
|
|
|
addAt4(Pair<X0,X1> tuple)
|
|
|
addAt4(Quartet<X0,X1,X2,X3> tuple)
|
|
|
addAt4(Quintet<X0,X1,X2,X3,X4> tuple)
|
|
|
addAt4(Sextet<X0,X1,X2,X3,X4,X5> tuple)
|
|
|
addAt4(Triplet<X0,X1,X2> tuple)
|
|
|
addAt4(Unit<X0> tuple)
|
|
|
addAt4(X0 value0)
|
|
|
addAt4(X0 value0,
X1 value1)
|
|
|
addAt4(X0 value0,
X1 value1,
X2 value2)
|
|
|
addAt4(X0 value0,
X1 value1,
X2 value2,
X3 value3)
|
|
|
addAt4(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4)
|
|
|
addAt4(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4,
X5 value5)
|
|
static
|
fromArray(X[] array)
Create tuple from array. |
|
static
|
fromCollection(Collection<X> collection)
Create tuple from collection. |
|
static
|
fromIterable(Iterable<X> iterable)
Create tuple from iterable. |
|
static
|
fromIterable(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()
|
|
Triplet<B,C,D> |
removeFrom0()
|
|
Triplet<A,C,D> |
removeFrom1()
|
|
Triplet<A,B,D> |
removeFrom2()
|
|
Triplet<A,B,C> |
removeFrom3()
|
|
|
setAt0(X value)
|
|
|
setAt1(X value)
|
|
|
setAt2(X value)
|
|
|
setAt3(X value)
|
|
static
|
with(A value0,
B value1,
C value2,
D value3)
|
Methods inherited from class org.javatuples.Tuple |
---|
compareTo, contains, containsAll, containsAll, equals, getValue, hashCode, indexOf, iterator, lastIndexOf, toArray, toList, toString |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Quartet(A value0, B value1, C value2, D value3)
Method Detail |
---|
public static <A,B,C,D> Quartet<A,B,C,D> with(A value0, B value1, C value2, D value3)
public static <X> Quartet<X,X,X,X> fromArray(X[] array)
Create tuple from array. Array has to have exactly four elements.
X
- the array component typearray
- the array to be converted to a tuple
public static <X> Quartet<X,X,X,X> fromCollection(Collection<X> collection)
Create tuple from collection. Collection has to have exactly four elements.
X
- the collection component typecollection
- the collection to be converted to a tuple
public static <X> Quartet<X,X,X,X> fromIterable(Iterable<X> iterable)
Create tuple from iterable. Iterable has to have exactly four elements.
X
- the iterable component typeiterable
- the iterable to be converted to a tuple
public static <X> Quartet<X,X,X,X> fromIterable(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
public A getValue0()
getValue0
in interface IValue0<A>
public B getValue1()
getValue1
in interface IValue1<B>
public C getValue2()
getValue2
in interface IValue2<C>
public D getValue3()
getValue3
in interface IValue3<D>
public int getSize()
Tuple
Return the size of the tuple.
getSize
in class Tuple
public <X0> Quintet<X0,A,B,C,D> addAt0(X0 value0)
public <X0> Quintet<A,X0,B,C,D> addAt1(X0 value0)
public <X0> Quintet<A,B,X0,C,D> addAt2(X0 value0)
public <X0> Quintet<A,B,C,X0,D> addAt3(X0 value0)
public <X0> Quintet<A,B,C,D,X0> addAt4(X0 value0)
public <X0,X1> Sextet<X0,X1,A,B,C,D> addAt0(X0 value0, X1 value1)
public <X0,X1> Sextet<A,X0,X1,B,C,D> addAt1(X0 value0, X1 value1)
public <X0,X1> Sextet<A,B,X0,X1,C,D> addAt2(X0 value0, X1 value1)
public <X0,X1> Sextet<A,B,C,X0,X1,D> addAt3(X0 value0, X1 value1)
public <X0,X1> Sextet<A,B,C,D,X0,X1> addAt4(X0 value0, X1 value1)
public <X0,X1,X2> Septet<X0,X1,X2,A,B,C,D> addAt0(X0 value0, X1 value1, X2 value2)
public <X0,X1,X2> Septet<A,X0,X1,X2,B,C,D> addAt1(X0 value0, X1 value1, X2 value2)
public <X0,X1,X2> Septet<A,B,X0,X1,X2,C,D> addAt2(X0 value0, X1 value1, X2 value2)
public <X0,X1,X2> Septet<A,B,C,X0,X1,X2,D> addAt3(X0 value0, X1 value1, X2 value2)
public <X0,X1,X2> Septet<A,B,C,D,X0,X1,X2> addAt4(X0 value0, X1 value1, X2 value2)
public <X0,X1,X2,X3> Octet<X0,X1,X2,X3,A,B,C,D> addAt0(X0 value0, X1 value1, X2 value2, X3 value3)
public <X0,X1,X2,X3> Octet<A,X0,X1,X2,X3,B,C,D> addAt1(X0 value0, X1 value1, X2 value2, X3 value3)
public <X0,X1,X2,X3> Octet<A,B,X0,X1,X2,X3,C,D> addAt2(X0 value0, X1 value1, X2 value2, X3 value3)
public <X0,X1,X2,X3> Octet<A,B,C,X0,X1,X2,X3,D> addAt3(X0 value0, X1 value1, X2 value2, X3 value3)
public <X0,X1,X2,X3> Octet<A,B,C,D,X0,X1,X2,X3> addAt4(X0 value0, X1 value1, X2 value2, X3 value3)
public <X0,X1,X2,X3,X4> Ennead<X0,X1,X2,X3,X4,A,B,C,D> addAt0(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4)
public <X0,X1,X2,X3,X4> Ennead<A,X0,X1,X2,X3,X4,B,C,D> addAt1(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4)
public <X0,X1,X2,X3,X4> Ennead<A,B,X0,X1,X2,X3,X4,C,D> addAt2(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4)
public <X0,X1,X2,X3,X4> Ennead<A,B,C,X0,X1,X2,X3,X4,D> addAt3(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4)
public <X0,X1,X2,X3,X4> Ennead<A,B,C,D,X0,X1,X2,X3,X4> addAt4(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4)
public <X0,X1,X2,X3,X4,X5> Decade<X0,X1,X2,X3,X4,X5,A,B,C,D> addAt0(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4, X5 value5)
public <X0,X1,X2,X3,X4,X5> Decade<A,X0,X1,X2,X3,X4,X5,B,C,D> addAt1(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4, X5 value5)
public <X0,X1,X2,X3,X4,X5> Decade<A,B,X0,X1,X2,X3,X4,X5,C,D> addAt2(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4, X5 value5)
public <X0,X1,X2,X3,X4,X5> Decade<A,B,C,X0,X1,X2,X3,X4,X5,D> addAt3(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4, X5 value5)
public <X0,X1,X2,X3,X4,X5> Decade<A,B,C,D,X0,X1,X2,X3,X4,X5> addAt4(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4, X5 value5)
public <X0> Quintet<X0,A,B,C,D> addAt0(Unit<X0> tuple)
public <X0> Quintet<A,X0,B,C,D> addAt1(Unit<X0> tuple)
public <X0> Quintet<A,B,X0,C,D> addAt2(Unit<X0> tuple)
public <X0> Quintet<A,B,C,X0,D> addAt3(Unit<X0> tuple)
public <X0> Quintet<A,B,C,D,X0> addAt4(Unit<X0> tuple)
public <X0,X1> Sextet<X0,X1,A,B,C,D> addAt0(Pair<X0,X1> tuple)
public <X0,X1> Sextet<A,X0,X1,B,C,D> addAt1(Pair<X0,X1> tuple)
public <X0,X1> Sextet<A,B,X0,X1,C,D> addAt2(Pair<X0,X1> tuple)
public <X0,X1> Sextet<A,B,C,X0,X1,D> addAt3(Pair<X0,X1> tuple)
public <X0,X1> Sextet<A,B,C,D,X0,X1> addAt4(Pair<X0,X1> tuple)
public <X0,X1,X2> Septet<X0,X1,X2,A,B,C,D> addAt0(Triplet<X0,X1,X2> tuple)
public <X0,X1,X2> Septet<A,X0,X1,X2,B,C,D> addAt1(Triplet<X0,X1,X2> tuple)
public <X0,X1,X2> Septet<A,B,X0,X1,X2,C,D> addAt2(Triplet<X0,X1,X2> tuple)
public <X0,X1,X2> Septet<A,B,C,X0,X1,X2,D> addAt3(Triplet<X0,X1,X2> tuple)
public <X0,X1,X2> Septet<A,B,C,D,X0,X1,X2> addAt4(Triplet<X0,X1,X2> tuple)
public <X0,X1,X2,X3> Octet<X0,X1,X2,X3,A,B,C,D> addAt0(Quartet<X0,X1,X2,X3> tuple)
public <X0,X1,X2,X3> Octet<A,X0,X1,X2,X3,B,C,D> addAt1(Quartet<X0,X1,X2,X3> tuple)
public <X0,X1,X2,X3> Octet<A,B,X0,X1,X2,X3,C,D> addAt2(Quartet<X0,X1,X2,X3> tuple)
public <X0,X1,X2,X3> Octet<A,B,C,X0,X1,X2,X3,D> addAt3(Quartet<X0,X1,X2,X3> tuple)
public <X0,X1,X2,X3> Octet<A,B,C,D,X0,X1,X2,X3> addAt4(Quartet<X0,X1,X2,X3> tuple)
public <X0,X1,X2,X3,X4> Ennead<X0,X1,X2,X3,X4,A,B,C,D> addAt0(Quintet<X0,X1,X2,X3,X4> tuple)
public <X0,X1,X2,X3,X4> Ennead<A,X0,X1,X2,X3,X4,B,C,D> addAt1(Quintet<X0,X1,X2,X3,X4> tuple)
public <X0,X1,X2,X3,X4> Ennead<A,B,X0,X1,X2,X3,X4,C,D> addAt2(Quintet<X0,X1,X2,X3,X4> tuple)
public <X0,X1,X2,X3,X4> Ennead<A,B,C,X0,X1,X2,X3,X4,D> addAt3(Quintet<X0,X1,X2,X3,X4> tuple)
public <X0,X1,X2,X3,X4> Ennead<A,B,C,D,X0,X1,X2,X3,X4> addAt4(Quintet<X0,X1,X2,X3,X4> tuple)
public <X0,X1,X2,X3,X4,X5> Decade<X0,X1,X2,X3,X4,X5,A,B,C,D> addAt0(Sextet<X0,X1,X2,X3,X4,X5> tuple)
public <X0,X1,X2,X3,X4,X5> Decade<A,X0,X1,X2,X3,X4,X5,B,C,D> addAt1(Sextet<X0,X1,X2,X3,X4,X5> tuple)
public <X0,X1,X2,X3,X4,X5> Decade<A,B,X0,X1,X2,X3,X4,X5,C,D> addAt2(Sextet<X0,X1,X2,X3,X4,X5> tuple)
public <X0,X1,X2,X3,X4,X5> Decade<A,B,C,X0,X1,X2,X3,X4,X5,D> addAt3(Sextet<X0,X1,X2,X3,X4,X5> tuple)
public <X0,X1,X2,X3,X4,X5> Decade<A,B,C,D,X0,X1,X2,X3,X4,X5> addAt4(Sextet<X0,X1,X2,X3,X4,X5> tuple)
public <X0> Quintet<A,B,C,D,X0> add(X0 value0)
public <X0> Quintet<A,B,C,D,X0> add(Unit<X0> tuple)
public <X0,X1> Sextet<A,B,C,D,X0,X1> add(X0 value0, X1 value1)
public <X0,X1> Sextet<A,B,C,D,X0,X1> add(Pair<X0,X1> tuple)
public <X0,X1,X2> Septet<A,B,C,D,X0,X1,X2> add(X0 value0, X1 value1, X2 value2)
public <X0,X1,X2> Septet<A,B,C,D,X0,X1,X2> add(Triplet<X0,X1,X2> tuple)
public <X0,X1,X2,X3> Octet<A,B,C,D,X0,X1,X2,X3> add(X0 value0, X1 value1, X2 value2, X3 value3)
public <X0,X1,X2,X3> Octet<A,B,C,D,X0,X1,X2,X3> add(Quartet<X0,X1,X2,X3> tuple)
public <X0,X1,X2,X3,X4> Ennead<A,B,C,D,X0,X1,X2,X3,X4> add(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4)
public <X0,X1,X2,X3,X4> Ennead<A,B,C,D,X0,X1,X2,X3,X4> add(Quintet<X0,X1,X2,X3,X4> tuple)
public <X0,X1,X2,X3,X4,X5> Decade<A,B,C,D,X0,X1,X2,X3,X4,X5> add(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4, X5 value5)
public <X0,X1,X2,X3,X4,X5> Decade<A,B,C,D,X0,X1,X2,X3,X4,X5> add(Sextet<X0,X1,X2,X3,X4,X5> tuple)
public <X> Quartet<X,B,C,D> setAt0(X value)
public <X> Quartet<A,X,C,D> setAt1(X value)
public <X> Quartet<A,B,X,D> setAt2(X value)
public <X> Quartet<A,B,C,X> setAt3(X value)
public Triplet<B,C,D> removeFrom0()
public Triplet<A,C,D> removeFrom1()
public Triplet<A,B,D> removeFrom2()
public Triplet<A,B,C> removeFrom3()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |