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.