# Package de.lmu.ifi.dbs.elki.utilities.pairs

Pairs utility classes A number of commonly needed primitive pairs are the following: IntIntPair storing two int values DoubleIntPair storing one double and one int value.

See: Description

• 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<FIRST,SECOND>
Simple class wrapping two objects.

## Package de.lmu.ifi.dbs.elki.utilities.pairs Description

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.