it.unimi.dsi.fastutil.ints.IntComparator, Serializable, Comparator<Integer>public class IntComparatorChain extends Object implements it.unimi.dsi.fastutil.ints.IntComparator, Serializable
The implementation is based on Apache Commons Collections
| Constructor | Description |
|---|---|
IntComparatorChain(it.unimi.dsi.fastutil.ints.IntComparator comparator) |
Constructs a comparator chain with the argument as the first node in the chain
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addComparator(it.unimi.dsi.fastutil.ints.IntComparator comparator) |
Appends the comparator to the end of the chain
|
int |
compare(int o1,
int o2) |
|
boolean |
equals(Object object) |
|
int |
hashCode() |
|
int |
size() |
Returns the number of comparators in the chain
|
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reverseOrder, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic IntComparatorChain(it.unimi.dsi.fastutil.ints.IntComparator comparator)
public void addComparator(it.unimi.dsi.fastutil.ints.IntComparator comparator)
public int size()
public int compare(int o1,
int o2)
throws UnsupportedOperationException
compare in interface it.unimi.dsi.fastutil.ints.IntComparatorUnsupportedOperationExceptionCopyright © 2022. All rights reserved.