T0 - The type of field 0T1 - The type of field 1T2 - The type of field 2public class Tuple3<T0,T1,T2> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
T0 |
f0
Field 0 of the tuple.
|
T1 |
f1
Field 1 of the tuple.
|
T2 |
f2
Field 2 of the tuple.
|
| Modifier and Type | Method and Description |
|---|---|
static <T0,T1,T2> Tuple3<T0,T1,T2> |
of(T0 f0,
T1 f1,
T2 f2)
Creates a new tuple and assigns the given values to the tuple's fields.
|
public final T0 f0
public final T1 f1
public final T2 f2
public static <T0,T1,T2> Tuple3<T0,T1,T2> of(T0 f0, T1 f1, T2 f2)
Tuple3.of(n, x, s) instead of new
Tuple3<Integer, Double, String>(n, x, s)Copyright © 2024 The Apache Software Foundation. All rights reserved.