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.
  • Interface Summary 
    Interface Description
    Pair<T1,​T2>
    A Pair is a container that holds two related objects.
    Triple<T1,​T2,​T3>  
    Triplet<T>  
    Twin<T>
    A Twin is a Pair where both elements have the same type.