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