| Package | Description | 
|---|---|
| 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. | 
| Modifier and Type | Field and Description | 
|---|---|
static java.util.Comparator<IntDoublePair> | 
IntDoublePair.BYFIRST_COMPARATOR
Comparator to compare by second component only 
 | 
static java.util.Comparator<IntDoublePair> | 
IntDoublePair.BYSECOND_COMPARATOR
Comparator to compare by second component only 
 | 
static java.util.Comparator<IntDoublePair> | 
IntDoublePair.SWAPPED_COMPARATOR
Comparator to compare by swapped components 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
IntDoublePair.compareSwappedTo(IntDoublePair other)
Implementation of comparableSwapped interface, sorting by second then
 first. 
 | 
int | 
IntDoublePair.compareTo(IntDoublePair other)
Implementation of comparable interface, sorting by first then second. 
 | 
Copyright © 2019 ELKI Development Team. License information.