package org.eclipse.collections.api.tuple
This package contains the
Pair
and
Twin
interfaces.
A tuple is a container used to hold two related objects.
This package contains 4 interfaces:
-
Pair
- a container that holds two related objects.
-
Twin
- a Pair that has the same type for both items.
-
Triple
- a container that holds three related objects.
-
Triplet
- a Triple that has the same type for all three items.
-
-
Interfaces
A Pair is a container that holds two related objects.
A Twin is a Pair where both elements have the same type.