# Package elki.utilities.pairs

Pairs utility classes.

A number of commonly needed primitive pairs are the following:

Why no more Pair<A,B>?
• Because such pairs are expensive in Java when using primitive types.
• Because domain-specific code can often be optimized better by the HotSpot VM.
• Class Summary
Class Description
DoubleDoublePair
Pair storing two doubles.
DoubleIntPair
Pair storing an integer and a double.
DoubleObjPair<O>
Pair storing a native double value and an arbitrary object.
IntDoublePair
Pair storing an integer and a double.
IntIntPair
Pair storing two integers.
Pair<F,​S>
Simple class wrapping two objects.