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

Pairs and triples utility classes.

See: Description


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

Pairs and triples utility classes.

Pairs and triples are frequently used classes and reimplemented too often.

Due to limitations in object subclassing, CPair cannot be a subclass of FCPair, since a class cannot implement the Comparable interface twice.

Also primitive types cannot be used in Generics, resulting in the following classes for primitive types:

Triples can be used via:

If you need a triple comparable in just particular components, either define a comparator for sorting or subclass Triple appropriately.

Release 0.5.0 (2012-07-02_1155)