T0
- The type of field 0T1
- The type of field 1T2
- The type of field 2T3
- The type of field 3T4
- The type of field 4T5
- The type of field 5T6
- The type of field 6T7
- The type of field 7T8
- The type of field 8T9
- The type of field 9T10
- The type of field 10T11
- The type of field 11T12
- The type of field 12T13
- The type of field 13T14
- The type of field 14T15
- The type of field 15T16
- The type of field 16T17
- The type of field 17T18
- The type of field 18T19
- The type of field 19T20
- The type of field 20T21
- The type of field 21T22
- The type of field 22T23
- The type of field 23T24
- The type of field 24@Public public class Tuple25<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24> extends Tuple
getField(int)
method. The tuple field positions start at zero.
Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work with Tuples to reuse objects in order to reduce pressure on the garbage collector.
Warning: If you subclass Tuple25, then be sure to either
Tuple
,
Serialized FormModifier and Type | Field and Description |
---|---|
T0 |
f0
Field 0 of the tuple.
|
T1 |
f1
Field 1 of the tuple.
|
T10 |
f10
Field 10 of the tuple.
|
T11 |
f11
Field 11 of the tuple.
|
T12 |
f12
Field 12 of the tuple.
|
T13 |
f13
Field 13 of the tuple.
|
T14 |
f14
Field 14 of the tuple.
|
T15 |
f15
Field 15 of the tuple.
|
T16 |
f16
Field 16 of the tuple.
|
T17 |
f17
Field 17 of the tuple.
|
T18 |
f18
Field 18 of the tuple.
|
T19 |
f19
Field 19 of the tuple.
|
T2 |
f2
Field 2 of the tuple.
|
T20 |
f20
Field 20 of the tuple.
|
T21 |
f21
Field 21 of the tuple.
|
T22 |
f22
Field 22 of the tuple.
|
T23 |
f23
Field 23 of the tuple.
|
T24 |
f24
Field 24 of the tuple.
|
T3 |
f3
Field 3 of the tuple.
|
T4 |
f4
Field 4 of the tuple.
|
T5 |
f5
Field 5 of the tuple.
|
T6 |
f6
Field 6 of the tuple.
|
T7 |
f7
Field 7 of the tuple.
|
T8 |
f8
Field 8 of the tuple.
|
T9 |
f9
Field 9 of the tuple.
|
Constructor and Description |
---|
Tuple25()
Creates a new tuple where all fields are null.
|
Tuple25(T0 f0,
T1 f1,
T2 f2,
T3 f3,
T4 f4,
T5 f5,
T6 f6,
T7 f7,
T8 f8,
T9 f9,
T10 f10,
T11 f11,
T12 f12,
T13 f13,
T14 f14,
T15 f15,
T16 f16,
T17 f17,
T18 f18,
T19 f19,
T20 f20,
T21 f21,
T22 f22,
T23 f23,
T24 f24)
Creates a new tuple and assigns the given values to the tuple's fields.
|
Modifier and Type | Method and Description |
---|---|
Tuple25<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24> |
copy()
Shallow tuple copy.
|
boolean |
equals(Object o)
Deep equality for tuples by calling equals() on the tuple members.
|
int |
getArity()
Gets the number of field in the tuple (the tuple arity).
|
<T> T |
getField(int pos)
Gets the field at the specified position.
|
int |
hashCode() |
static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24> |
of(T0 f0,
T1 f1,
T2 f2,
T3 f3,
T4 f4,
T5 f5,
T6 f6,
T7 f7,
T8 f8,
T9 f9,
T10 f10,
T11 f11,
T12 f12,
T13 f13,
T14 f14,
T15 f15,
T16 f16,
T17 f17,
T18 f18,
T19 f19,
T20 f20,
T21 f21,
T22 f22,
T23 f23,
T24 f24)
Creates a new tuple and assigns the given values to the tuple's fields.
|
<T> void |
setField(T value,
int pos)
Sets the field at the specified position.
|
void |
setFields(T0 f0,
T1 f1,
T2 f2,
T3 f3,
T4 f4,
T5 f5,
T6 f6,
T7 f7,
T8 f8,
T9 f9,
T10 f10,
T11 f11,
T12 f12,
T13 f13,
T14 f14,
T15 f15,
T16 f16,
T17 f17,
T18 f18,
T19 f19,
T20 f20,
T21 f21,
T22 f22,
T23 f23,
T24 f24)
Sets new values to all fields of the tuple.
|
String |
toString()
Creates a string representation of the tuple in the form (f0, f1, f2, f3, f4, f5, f6, f7, f8,
f9, f10, f11, f12, f13, f14, f15, f16, f17, f18, f19, f20, f21, f22, f23, f24), where the
individual fields are the value returned by calling
Object.toString() on that field. |
getFieldNotNull, getTupleClass, newInstance
public T0 f0
public T1 f1
public T2 f2
public T3 f3
public T4 f4
public T5 f5
public T6 f6
public T7 f7
public T8 f8
public T9 f9
public T10 f10
public T11 f11
public T12 f12
public T13 f13
public T14 f14
public T15 f15
public T16 f16
public T17 f17
public T18 f18
public T19 f19
public T20 f20
public T21 f21
public T22 f22
public T23 f23
public T24 f24
public Tuple25()
public Tuple25(T0 f0, T1 f1, T2 f2, T3 f3, T4 f4, T5 f5, T6 f6, T7 f7, T8 f8, T9 f9, T10 f10, T11 f11, T12 f12, T13 f13, T14 f14, T15 f15, T16 f16, T17 f17, T18 f18, T19 f19, T20 f20, T21 f21, T22 f22, T23 f23, T24 f24)
f0
- The value for field 0f1
- The value for field 1f2
- The value for field 2f3
- The value for field 3f4
- The value for field 4f5
- The value for field 5f6
- The value for field 6f7
- The value for field 7f8
- The value for field 8f9
- The value for field 9f10
- The value for field 10f11
- The value for field 11f12
- The value for field 12f13
- The value for field 13f14
- The value for field 14f15
- The value for field 15f16
- The value for field 16f17
- The value for field 17f18
- The value for field 18f19
- The value for field 19f20
- The value for field 20f21
- The value for field 21f22
- The value for field 22f23
- The value for field 23f24
- The value for field 24public int getArity()
Tuple
public <T> T getField(int pos)
Tuple
public <T> void setField(T value, int pos)
Tuple
public void setFields(T0 f0, T1 f1, T2 f2, T3 f3, T4 f4, T5 f5, T6 f6, T7 f7, T8 f8, T9 f9, T10 f10, T11 f11, T12 f12, T13 f13, T14 f14, T15 f15, T16 f16, T17 f17, T18 f18, T19 f19, T20 f20, T21 f21, T22 f22, T23 f23, T24 f24)
f0
- The value for field 0f1
- The value for field 1f2
- The value for field 2f3
- The value for field 3f4
- The value for field 4f5
- The value for field 5f6
- The value for field 6f7
- The value for field 7f8
- The value for field 8f9
- The value for field 9f10
- The value for field 10f11
- The value for field 11f12
- The value for field 12f13
- The value for field 13f14
- The value for field 14f15
- The value for field 15f16
- The value for field 16f17
- The value for field 17f18
- The value for field 18f19
- The value for field 19f20
- The value for field 20f21
- The value for field 21f22
- The value for field 22f23
- The value for field 23f24
- The value for field 24public String toString()
Object.toString()
on that field.public boolean equals(Object o)
public Tuple25<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24> copy()
public static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24> Tuple25<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24> of(T0 f0, T1 f1, T2 f2, T3 f3, T4 f4, T5 f5, T6 f6, T7 f7, T8 f8, T9 f9, T10 f10, T11 f11, T12 f12, T13 f13, T14 f14, T15 f15, T16 f16, T17 f17, T18 f18, T19 f19, T20 f20, T21 f21, T22 f22, T23 f23, T24 f24)
Tuple3.of(n, x, s)
instead of new
Tuple3<Integer, Double, String>(n, x, s)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.