|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.javatuples.Tuple org.javatuples.Triplet<A,B,C>
public final class Triplet<A,B,C>
A tuple of three elements.
Constructor Summary | |
---|---|
Triplet(A value0,
B value1,
C value2)
|
Method Summary | ||
---|---|---|
|
add(Pair<X0,X1> tuple)
|
|
|
add(Quartet<X0,X1,X2,X3> tuple)
|
|
|
add(Quintet<X0,X1,X2,X3,X4> tuple)
|
|
|
add(Septet<X0,X1,X2,X3,X4,X5,X6> 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)
|
|
|
add(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4,
X5 value5,
X6 value6)
|
|
|
addAt0(Pair<X0,X1> tuple)
|
|
|
addAt0(Quartet<X0,X1,X2,X3> tuple)
|
|
|
addAt0(Quintet<X0,X1,X2,X3,X4> tuple)
|
|
|
addAt0(Septet<X0,X1,X2,X3,X4,X5,X6> 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)
|
|
|
addAt0(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4,
X5 value5,
X6 value6)
|
|
|
addAt1(Pair<X0,X1> tuple)
|
|
|
addAt1(Quartet<X0,X1,X2,X3> tuple)
|
|
|
addAt1(Quintet<X0,X1,X2,X3,X4> tuple)
|
|
|
addAt1(Septet<X0,X1,X2,X3,X4,X5,X6> 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)
|
|
|
addAt1(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4,
X5 value5,
X6 value6)
|
|
|
addAt2(Pair<X0,X1> tuple)
|
|
|
addAt2(Quartet<X0,X1,X2,X3> tuple)
|
|
|
addAt2(Quintet<X0,X1,X2,X3,X4> tuple)
|
|
|
addAt2(Septet<X0,X1,X2,X3,X4,X5,X6> 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)
|
|
|
addAt2(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4,
X5 value5,
X6 value6)
|
|
|
addAt3(Pair<X0,X1> tuple)
|
|
|
addAt3(Quartet<X0,X1,X2,X3> tuple)
|
|
|
addAt3(Quintet<X0,X1,X2,X3,X4> tuple)
|
|
|
addAt3(Septet<X0,X1,X2,X3,X4,X5,X6> 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)
|
|
|
addAt3(X0 value0,
X1 value1,
X2 value2,
X3 value3,
X4 value4,
X5 value5,
X6 value6)
|
|
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()
|
|
Pair<B,C> |
removeFrom0()
|
|
Pair<A,C> |
removeFrom1()
|
|
Pair<A,B> |
removeFrom2()
|
|
|
setAt0(X value)
|
|
|
setAt1(X value)
|
|
|
setAt2(X value)
|
|
static
|
with(A value0,
B value1,
C value2)
|
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 Triplet(A value0, B value1, C value2)
Method Detail |
---|
public static <A,B,C> Triplet<A,B,C> with(A value0, B value1, C value2)
public static <X> Triplet<X,X,X> fromArray(X[] array)
Create tuple from array. Array has to have exactly three elements.
X
- the array component typearray
- the array to be converted to a tuple
public static <X> Triplet<X,X,X> fromCollection(Collection<X> collection)
Create tuple from collection. Collection has to have exactly three elements.
X
- the collection component typecollection
- the collection to be converted to a tuple
public static <X> Triplet<X,X,X> fromIterable(Iterable<X> iterable)
Create tuple from iterable. Iterable has to have exactly three elements.
X
- the iterable component typeiterable
- the iterable to be converted to a tuple
public static <X> Triplet<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 int getSize()
Tuple
Return the size of the tuple.
getSize
in class Tuple
public <X0> Quartet<X0,A,B,C> addAt0(X0 value0)
public <X0> Quartet<A,X0,B,C> addAt1(X0 value0)
public <X0> Quartet<A,B,X0,C> addAt2(X0 value0)
public <X0> Quartet<A,B,C,X0> addAt3(X0 value0)
public <X0,X1> Quintet<X0,X1,A,B,C> addAt0(X0 value0, X1 value1)
public <X0,X1> Quintet<A,X0,X1,B,C> addAt1(X0 value0, X1 value1)
public <X0,X1> Quintet<A,B,X0,X1,C> addAt2(X0 value0, X1 value1)
public <X0,X1> Quintet<A,B,C,X0,X1> addAt3(X0 value0, X1 value1)
public <X0,X1,X2> Sextet<X0,X1,X2,A,B,C> addAt0(X0 value0, X1 value1, X2 value2)
public <X0,X1,X2> Sextet<A,X0,X1,X2,B,C> addAt1(X0 value0, X1 value1, X2 value2)
public <X0,X1,X2> Sextet<A,B,X0,X1,X2,C> addAt2(X0 value0, X1 value1, X2 value2)
public <X0,X1,X2> Sextet<A,B,C,X0,X1,X2> addAt3(X0 value0, X1 value1, X2 value2)
public <X0,X1,X2,X3> Septet<X0,X1,X2,X3,A,B,C> addAt0(X0 value0, X1 value1, X2 value2, X3 value3)
public <X0,X1,X2,X3> Septet<A,X0,X1,X2,X3,B,C> addAt1(X0 value0, X1 value1, X2 value2, X3 value3)
public <X0,X1,X2,X3> Septet<A,B,X0,X1,X2,X3,C> addAt2(X0 value0, X1 value1, X2 value2, X3 value3)
public <X0,X1,X2,X3> Septet<A,B,C,X0,X1,X2,X3> addAt3(X0 value0, X1 value1, X2 value2, X3 value3)
public <X0,X1,X2,X3,X4> Octet<X0,X1,X2,X3,X4,A,B,C> addAt0(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4)
public <X0,X1,X2,X3,X4> Octet<A,X0,X1,X2,X3,X4,B,C> addAt1(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4)
public <X0,X1,X2,X3,X4> Octet<A,B,X0,X1,X2,X3,X4,C> addAt2(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4)
public <X0,X1,X2,X3,X4> Octet<A,B,C,X0,X1,X2,X3,X4> addAt3(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4)
public <X0,X1,X2,X3,X4,X5> Ennead<X0,X1,X2,X3,X4,X5,A,B,C> addAt0(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4, X5 value5)
public <X0,X1,X2,X3,X4,X5> Ennead<A,X0,X1,X2,X3,X4,X5,B,C> addAt1(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4, X5 value5)
public <X0,X1,X2,X3,X4,X5> Ennead<A,B,X0,X1,X2,X3,X4,X5,C> addAt2(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4, X5 value5)
public <X0,X1,X2,X3,X4,X5> Ennead<A,B,C,X0,X1,X2,X3,X4,X5> addAt3(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4, X5 value5)
public <X0,X1,X2,X3,X4,X5,X6> Decade<X0,X1,X2,X3,X4,X5,X6,A,B,C> addAt0(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4, X5 value5, X6 value6)
public <X0,X1,X2,X3,X4,X5,X6> Decade<A,X0,X1,X2,X3,X4,X5,X6,B,C> addAt1(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4, X5 value5, X6 value6)
public <X0,X1,X2,X3,X4,X5,X6> Decade<A,B,X0,X1,X2,X3,X4,X5,X6,C> addAt2(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4, X5 value5, X6 value6)
public <X0,X1,X2,X3,X4,X5,X6> Decade<A,B,C,X0,X1,X2,X3,X4,X5,X6> addAt3(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4, X5 value5, X6 value6)
public <X0> Quartet<X0,A,B,C> addAt0(Unit<X0> tuple)
public <X0> Quartet<A,X0,B,C> addAt1(Unit<X0> tuple)
public <X0> Quartet<A,B,X0,C> addAt2(Unit<X0> tuple)
public <X0> Quartet<A,B,C,X0> addAt3(Unit<X0> tuple)
public <X0,X1> Quintet<X0,X1,A,B,C> addAt0(Pair<X0,X1> tuple)
public <X0,X1> Quintet<A,X0,X1,B,C> addAt1(Pair<X0,X1> tuple)
public <X0,X1> Quintet<A,B,X0,X1,C> addAt2(Pair<X0,X1> tuple)
public <X0,X1> Quintet<A,B,C,X0,X1> addAt3(Pair<X0,X1> tuple)
public <X0,X1,X2> Sextet<X0,X1,X2,A,B,C> addAt0(Triplet<X0,X1,X2> tuple)
public <X0,X1,X2> Sextet<A,X0,X1,X2,B,C> addAt1(Triplet<X0,X1,X2> tuple)
public <X0,X1,X2> Sextet<A,B,X0,X1,X2,C> addAt2(Triplet<X0,X1,X2> tuple)
public <X0,X1,X2> Sextet<A,B,C,X0,X1,X2> addAt3(Triplet<X0,X1,X2> tuple)
public <X0,X1,X2,X3> Septet<X0,X1,X2,X3,A,B,C> addAt0(Quartet<X0,X1,X2,X3> tuple)
public <X0,X1,X2,X3> Septet<A,X0,X1,X2,X3,B,C> addAt1(Quartet<X0,X1,X2,X3> tuple)
public <X0,X1,X2,X3> Septet<A,B,X0,X1,X2,X3,C> addAt2(Quartet<X0,X1,X2,X3> tuple)
public <X0,X1,X2,X3> Septet<A,B,C,X0,X1,X2,X3> addAt3(Quartet<X0,X1,X2,X3> tuple)
public <X0,X1,X2,X3,X4> Octet<X0,X1,X2,X3,X4,A,B,C> addAt0(Quintet<X0,X1,X2,X3,X4> tuple)
public <X0,X1,X2,X3,X4> Octet<A,X0,X1,X2,X3,X4,B,C> addAt1(Quintet<X0,X1,X2,X3,X4> tuple)
public <X0,X1,X2,X3,X4> Octet<A,B,X0,X1,X2,X3,X4,C> addAt2(Quintet<X0,X1,X2,X3,X4> tuple)
public <X0,X1,X2,X3,X4> Octet<A,B,C,X0,X1,X2,X3,X4> addAt3(Quintet<X0,X1,X2,X3,X4> tuple)
public <X0,X1,X2,X3,X4,X5> Ennead<X0,X1,X2,X3,X4,X5,A,B,C> addAt0(Sextet<X0,X1,X2,X3,X4,X5> tuple)
public <X0,X1,X2,X3,X4,X5> Ennead<A,X0,X1,X2,X3,X4,X5,B,C> addAt1(Sextet<X0,X1,X2,X3,X4,X5> tuple)
public <X0,X1,X2,X3,X4,X5> Ennead<A,B,X0,X1,X2,X3,X4,X5,C> addAt2(Sextet<X0,X1,X2,X3,X4,X5> tuple)
public <X0,X1,X2,X3,X4,X5> Ennead<A,B,C,X0,X1,X2,X3,X4,X5> addAt3(Sextet<X0,X1,X2,X3,X4,X5> tuple)
public <X0,X1,X2,X3,X4,X5,X6> Decade<X0,X1,X2,X3,X4,X5,X6,A,B,C> addAt0(Septet<X0,X1,X2,X3,X4,X5,X6> tuple)
public <X0,X1,X2,X3,X4,X5,X6> Decade<A,X0,X1,X2,X3,X4,X5,X6,B,C> addAt1(Septet<X0,X1,X2,X3,X4,X5,X6> tuple)
public <X0,X1,X2,X3,X4,X5,X6> Decade<A,B,X0,X1,X2,X3,X4,X5,X6,C> addAt2(Septet<X0,X1,X2,X3,X4,X5,X6> tuple)
public <X0,X1,X2,X3,X4,X5,X6> Decade<A,B,C,X0,X1,X2,X3,X4,X5,X6> addAt3(Septet<X0,X1,X2,X3,X4,X5,X6> tuple)
public <X0> Quartet<A,B,C,X0> add(X0 value0)
public <X0> Quartet<A,B,C,X0> add(Unit<X0> tuple)
public <X0,X1> Quintet<A,B,C,X0,X1> add(X0 value0, X1 value1)
public <X0,X1> Quintet<A,B,C,X0,X1> add(Pair<X0,X1> tuple)
public <X0,X1,X2> Sextet<A,B,C,X0,X1,X2> add(X0 value0, X1 value1, X2 value2)
public <X0,X1,X2> Sextet<A,B,C,X0,X1,X2> add(Triplet<X0,X1,X2> tuple)
public <X0,X1,X2,X3> Septet<A,B,C,X0,X1,X2,X3> add(X0 value0, X1 value1, X2 value2, X3 value3)
public <X0,X1,X2,X3> Septet<A,B,C,X0,X1,X2,X3> add(Quartet<X0,X1,X2,X3> tuple)
public <X0,X1,X2,X3,X4> Octet<A,B,C,X0,X1,X2,X3,X4> add(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4)
public <X0,X1,X2,X3,X4> Octet<A,B,C,X0,X1,X2,X3,X4> add(Quintet<X0,X1,X2,X3,X4> tuple)
public <X0,X1,X2,X3,X4,X5> Ennead<A,B,C,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> Ennead<A,B,C,X0,X1,X2,X3,X4,X5> add(Sextet<X0,X1,X2,X3,X4,X5> tuple)
public <X0,X1,X2,X3,X4,X5,X6> Decade<A,B,C,X0,X1,X2,X3,X4,X5,X6> add(X0 value0, X1 value1, X2 value2, X3 value3, X4 value4, X5 value5, X6 value6)
public <X0,X1,X2,X3,X4,X5,X6> Decade<A,B,C,X0,X1,X2,X3,X4,X5,X6> add(Septet<X0,X1,X2,X3,X4,X5,X6> tuple)
public <X> Triplet<X,B,C> setAt0(X value)
public <X> Triplet<A,X,C> setAt1(X value)
public <X> Triplet<A,B,X> setAt2(X value)
public Pair<B,C> removeFrom0()
public Pair<A,C> removeFrom1()
public Pair<A,B> removeFrom2()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |