protected static class FloatComparators.OppositeComparator extends Object implements FloatComparator, Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
OppositeComparator(FloatComparator c) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(float a,
float b)
Compares its two primitive-type arguments for order.
|
FloatComparator |
reversed() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompare, thenComparing, thenComparingcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reverseOrder, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected OppositeComparator(FloatComparator c)
public final int compare(float a,
float b)
FloatComparatorcompare in interface FloatComparatorComparatorpublic final FloatComparator reversed()
reversed in interface FloatComparatorreversed in interface Comparator<Float>Copyright © 2020. All rights reserved.