| Modifier and Type | Field and Description |
|---|---|
| private final E[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Tuple | |
| private static <T> int | |
| public int | compareTo(Tuple<E>
the object to be compared. other)Implements java. |
| public boolean | equals(Object
the object to be compared for equality with this list o)Overrides java. Implements java. |
| public E | get(int
index of the element to return index)Implements abstract java. Implements java. |
| public int | hashCode()
Overrides java. Implements java. |
| public int | size()
Implements abstract java. Implements java. |
| public List | subList(int
low endpoint (inclusive) of the subList fromIndex, int high endpoint (exclusive) of the subList toIndex)Overrides java. Implements java. fromIndex, inclusive, and toIndex, exclusive.
|
| public Tuple | |
| public E[] | toArray()
Overrides java. Implements java. |
| public static Tuple0 | |
| public static <T1> Tuple1 | |
| public static <T1, T2> Tuple2 | |
| public static <T1, T2, T3> Tuple3 | |
| public static <T1, T2, T3, T4> Tuple4 | |
| public static <T1, T2, T3, T4, T5> Tuple5 | |
| public static <T1, T2, T3, T4, T5, T6> Tuple6 | |
| public static <T1, T2, T3, T4, T5, T6, T7> Tuple7 | |
| public static <T1, T2, T3, T4, T5, T6, T7, T8> Tuple8 | |
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9> Tuple9 | |
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Tuple10 | tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10)
Construct a tuple of degree 10. |
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Tuple11 | tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11)
Construct a tuple of degree 11. |
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Tuple12 | tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12)
Construct a tuple of degree 12. |
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Tuple13 | tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13)
Construct a tuple of degree 13. |
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Tuple14 | tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14)
Construct a tuple of degree 14. |
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Tuple15 | tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15)
Construct a tuple of degree 15. |
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Tuple16 | tuple(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16)
Construct a tuple of degree 16. |
| contents | back to summary |
|---|---|
| private final E[] contents | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Tuple | back to summary |
|---|---|
public Tuple(E... contents)
| |
| Tuple | back to summary |
|---|---|
| public Tuple(Tuple<E> tuple) | |
| clone | back to summary |
|---|---|
| public Tuple Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| compare | back to summary |
|---|---|
private static <T> int compare(T t1, T t2)
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(Tuple<E> other) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Implements java. Doc from java. Compares the specified object with this list for equality. Returns
| |
| get | back to summary |
|---|---|
| public E get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Returns the hash code value for this list.
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |
| subList | back to summary |
|---|---|
| public List Overrides java. Implements java. Doc from java. Returns a view of the portion of this list between the specified
This method eliminates the need for explicit range operations (of the sort that commonly exist for arrays). Any operation that expects a list can be used as a range operation by passing a subList view instead of a whole list. For example, the following idiom removes a range of elements from a list:
Similar idioms may be constructed for indexOf and
lastIndexOf, and all of the algorithms in the
Collections class can be applied to a subList.The semantics of the list returned by this method become undefined if the backing list (i.e., this list) is structurally modified in any way other than via the returned list. (Structural modifications are those that change the size of this list, or otherwise perturb it in such a fashion that iterations in progress may yield incorrect results.)
| |
| subTuple | back to summary |
|---|---|
| public Tuple | |
| toArray | back to summary |
|---|---|
| public E[] toArray() Overrides java. Implements java. Doc from java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). The returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array even if this list is backed by an array). The caller is thus free to modify the returned array. This method acts as bridge between array-based and collection-based APIs.
| |
| tuple | back to summary |
|---|---|
| public static Tuple0 tuple() Construct a tuple of degree 0. | |
| tuple | back to summary |
|---|---|
| public static <T1> Tuple1 Construct a tuple of degree 1. | |
| tuple | back to summary |
|---|---|
| public static <T1, T2> Tuple2 Construct a tuple of degree 2. | |
| tuple | back to summary |
|---|---|
| public static <T1, T2, T3> Tuple3 Construct a tuple of degree 3. | |
| tuple | back to summary |
|---|---|
| public static <T1, T2, T3, T4> Tuple4 Construct a tuple of degree 4. | |
| tuple | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5> Tuple5 Construct a tuple of degree 5. | |
| tuple | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5, T6> Tuple6 Construct a tuple of degree 6. | |
| tuple | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5, T6, T7> Tuple7 Construct a tuple of degree 7. | |
| tuple | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5, T6, T7, T8> Tuple8 Construct a tuple of degree 8. | |
| tuple | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9> Tuple9 Construct a tuple of degree 9. | |
| tuple | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Tuple10 Construct a tuple of degree 10. | |
| tuple | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Tuple11 Construct a tuple of degree 11. | |
| tuple | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Tuple12 Construct a tuple of degree 12. | |
| tuple | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Tuple13 Construct a tuple of degree 13. | |
| tuple | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Tuple14 Construct a tuple of degree 14. | |
| tuple | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Tuple15 Construct a tuple of degree 15. | |
| tuple | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Tuple16 Construct a tuple of degree 16. | |