Package org.javatuples
Class Decade<A,B,C,D,E,F,G,H,I,J>
- java.lang.Object
-
- org.javatuples.Tuple
-
- org.javatuples.Decade<A,B,C,D,E,F,G,H,I,J>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Tuple>,java.lang.Iterable<java.lang.Object>,IValue0<A>,IValue1<B>,IValue2<C>,IValue3<D>,IValue4<E>,IValue5<F>,IValue6<G>,IValue7<H>,IValue8<I>,IValue9<J>
public final class Decade<A,B,C,D,E,F,G,H,I,J> extends Tuple implements IValue0<A>, IValue1<B>, IValue2<C>, IValue3<D>, IValue4<E>, IValue5<F>, IValue6<G>, IValue7<H>, IValue8<I>, IValue9<J>
A tuple of ten elements.
- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <X> Decade<X,X,X,X,X,X,X,X,X,X>fromArray(X[] array)Create tuple from array.static <X> Decade<X,X,X,X,X,X,X,X,X,X>fromCollection(java.util.Collection<X> collection)Create tuple from collection.static <X> Decade<X,X,X,X,X,X,X,X,X,X>fromIterable(java.lang.Iterable<X> iterable)Create tuple from iterable.static <X> Decade<X,X,X,X,X,X,X,X,X,X>fromIterable(java.lang.Iterable<X> iterable, int index)Create tuple from iterable, starting from the specified index.private static <X> Decade<X,X,X,X,X,X,X,X,X,X>fromIterable(java.lang.Iterable<X> iterable, int index, boolean exactSize)intgetSize()Return the size of the tuple.AgetValue0()BgetValue1()CgetValue2()DgetValue3()EgetValue4()FgetValue5()GgetValue6()HgetValue7()IgetValue8()JgetValue9()Ennead<B,C,D,E,F,G,H,I,J>removeFrom0()Ennead<A,C,D,E,F,G,H,I,J>removeFrom1()Ennead<A,B,D,E,F,G,H,I,J>removeFrom2()Ennead<A,B,C,E,F,G,H,I,J>removeFrom3()Ennead<A,B,C,D,F,G,H,I,J>removeFrom4()Ennead<A,B,C,D,E,G,H,I,J>removeFrom5()Ennead<A,B,C,D,E,F,H,I,J>removeFrom6()Ennead<A,B,C,D,E,F,G,I,J>removeFrom7()Ennead<A,B,C,D,E,F,G,H,J>removeFrom8()Ennead<A,B,C,D,E,F,G,H,I>removeFrom9()<X> Decade<X,B,C,D,E,F,G,H,I,J>setAt0(X value)<X> Decade<A,X,C,D,E,F,G,H,I,J>setAt1(X value)<X> Decade<A,B,X,D,E,F,G,H,I,J>setAt2(X value)<X> Decade<A,B,C,X,E,F,G,H,I,J>setAt3(X value)<X> Decade<A,B,C,D,X,F,G,H,I,J>setAt4(X value)<X> Decade<A,B,C,D,E,X,G,H,I,J>setAt5(X value)<X> Decade<A,B,C,D,E,F,X,H,I,J>setAt6(X value)<X> Decade<A,B,C,D,E,F,G,X,I,J>setAt7(X value)<X> Decade<A,B,C,D,E,F,G,H,X,J>setAt8(X value)<X> Decade<A,B,C,D,E,F,G,H,I,X>setAt9(X value)static <A,B,C,D,E,F,G,H,I,J>
Decade<A,B,C,D,E,F,G,H,I,J>with(A value0, B value1, C value2, D value3, E value4, F value5, G value6, H value7, I value8, J value9)-
Methods inherited from class org.javatuples.Tuple
compareTo, contains, containsAll, containsAll, equals, getValue, hashCode, indexOf, iterator, lastIndexOf, toArray, toList, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
SIZE
private static final int SIZE
- See Also:
- Constant Field Values
-
val0
private final A val0
-
val1
private final B val1
-
val2
private final C val2
-
val3
private final D val3
-
val4
private final E val4
-
val5
private final F val5
-
val6
private final G val6
-
val7
private final H val7
-
val8
private final I val8
-
val9
private final J val9
-
-
Method Detail
-
with
public static <A,B,C,D,E,F,G,H,I,J> Decade<A,B,C,D,E,F,G,H,I,J> with(A value0, B value1, C value2, D value3, E value4, F value5, G value6, H value7, I value8, J value9)
-
fromArray
public static <X> Decade<X,X,X,X,X,X,X,X,X,X> fromArray(X[] array)
Create tuple from array. Array has to have exactly ten elements.
- Type Parameters:
X- the array component type- Parameters:
array- the array to be converted to a tuple- Returns:
- the tuple
-
fromCollection
public static <X> Decade<X,X,X,X,X,X,X,X,X,X> fromCollection(java.util.Collection<X> collection)
Create tuple from collection. Collection has to have exactly ten elements.
- Type Parameters:
X- the collection component type- Parameters:
collection- the collection to be converted to a tuple- Returns:
- the tuple
-
fromIterable
public static <X> Decade<X,X,X,X,X,X,X,X,X,X> fromIterable(java.lang.Iterable<X> iterable)
Create tuple from iterable. Iterable has to have exactly ten elements.
- Type Parameters:
X- the iterable component type- Parameters:
iterable- the iterable to be converted to a tuple- Returns:
- the tuple
-
fromIterable
public static <X> Decade<X,X,X,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.
- Type Parameters:
X- the iterable component type- Parameters:
iterable- the iterable to be converted to a tuple- Returns:
- the tuple
-
fromIterable
private static <X> Decade<X,X,X,X,X,X,X,X,X,X> fromIterable(java.lang.Iterable<X> iterable, int index, boolean exactSize)
-
getSize
public int getSize()
Description copied from class:TupleReturn the size of the tuple.
-
-