| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public TwinImpl | swap()
Overrides org. Implements org. Method used to swap the elements of pair. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| TwinImpl | back to summary |
|---|---|
| pack-priv TwinImpl(T newOne, T newTwo) | |
| swap | back to summary |
|---|---|
| public TwinImpl Overrides org. Implements org. Doc from org. Method used to swap the elements of pair. e.g.
Pair<String, Integer> pair = Tuples.pair("One", 1);
Pair<Integer, String> swappedPair = pair.swap();
| |