Package | Description |
---|---|
org.openimaj.util.pair |
Modifier and Type | Field and Description |
---|---|
static Comparator<ObjectLongPair<?>> |
ObjectLongPair.SECOND_ITEM_ASCENDING_COMPARATOR
Comparator for comparing the second element of a
ObjectLongPair in ascending order. |
static Comparator<ObjectLongPair<?>> |
ObjectLongPair.SECOND_ITEM_DESCENDING_COMPARATOR
Comparator for comparing the second element of a
ObjectLongPair in descending order. |
Modifier and Type | Method and Description |
---|---|
static <Q> ObjectLongPair<Q> |
ObjectLongPair.pair(Q q,
long t)
Create a pair from the given objects.
|
Modifier and Type | Method and Description |
---|---|
static <Q> List<Q> |
ObjectLongPair.getFirst(Iterable<ObjectLongPair<Q>> data)
Extract the first objects from a list of pairs.
|
static <Q> gnu.trove.list.array.TLongArrayList |
ObjectLongPair.getSecond(Iterable<ObjectLongPair<Q>> data)
Extract the second objects from a list of pairs.
|