Package elki.utilities.pairs
Pairs utility classes.
A number of commonly needed primitive pairs are the following:
IntIntPair
storing twoint
valuesDoubleIntPair
storing onedouble
and oneint
value.IntDoublePair
storing oneint
and onedouble
value.DoubleDoublePair
storing twodouble
values
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.