T1
- The type of the first non-null value held by this tupleT2
- The type of the second non-null value held by this tupleT3
- The type of the third non-null value held by this tupleT4
- The type of the fourth non-null value held by this tuplepublic class Tuple4<T1,T2,T3,T4> extends Tuple3<T1,T2,T3>
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
get(int index)
Get the object at the given index.
|
T4 |
getT4()
Type-safe way to get the fourth object of this
Tuples . |
int |
hashCode() |
<R> Tuple4<R,T2,T3,T4> |
mapT1(java.util.function.Function<T1,R> mapper)
Map the 1st part (T1) of this
Tuple4 into a different value and type,
keeping the other parts. |
<R> Tuple4<T1,R,T3,T4> |
mapT2(java.util.function.Function<T2,R> mapper)
Map the 2nd part (T2) of this
Tuple4 into a different value and type,
keeping the other parts. |
<R> Tuple4<T1,T2,R,T4> |
mapT3(java.util.function.Function<T3,R> mapper)
Map the 3rd part (T3) of this
Tuple4 into a different value and type,
keeping the other parts. |
<R> Tuple4<T1,T2,T3,R> |
mapT4(java.util.function.Function<T4,R> mapper)
Map the 4th part (T4) of this
Tuple4 into a different value and type,
keeping the other parts. |
int |
size()
Return the number of elements in this Tuples.
|
java.lang.Object[] |
toArray()
Turn this
Tuple into a plain Object[] . |
public T4 getT4()
Tuples
.public <R> Tuple4<R,T2,T3,T4> mapT1(java.util.function.Function<T1,R> mapper)
Tuple4
into a different value and type,
keeping the other parts.public <R> Tuple4<T1,R,T3,T4> mapT2(java.util.function.Function<T2,R> mapper)
Tuple4
into a different value and type,
keeping the other parts.public <R> Tuple4<T1,T2,R,T4> mapT3(java.util.function.Function<T3,R> mapper)
Tuple4
into a different value and type,
keeping the other parts.public <R> Tuple4<T1,T2,T3,R> mapT4(java.util.function.Function<T4,R> mapper)
Tuple4
into a different value and type,
keeping the other parts.R
- the new type for the T4 partmapper
- the mapping Function
for the T4 partTuple4
with a different T4 value@Nullable public java.lang.Object get(int index)
Tuple2
public java.lang.Object[] toArray()
Tuple2
Tuple
into a plain Object[]
.
The array isn't tied to this Tuple but is a copy.