public class IntComparators extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
IntComparators.NaturalImplicitComparator
A type-specific comparator mimicking the natural order.
|
protected static class |
IntComparators.OppositeComparator |
protected static class |
IntComparators.OppositeImplicitComparator
A type-specific comparator mimicking the opposite of the natural order.
|
| Modifier and Type | Field and Description |
|---|---|
static IntComparator |
NATURAL_COMPARATOR |
static IntComparator |
OPPOSITE_COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
static IntComparator |
oppositeComparator(IntComparator c)
Returns a comparator representing the opposite order of the given comparator.
|
public static final IntComparator NATURAL_COMPARATOR
public static final IntComparator OPPOSITE_COMPARATOR
public static IntComparator oppositeComparator(IntComparator c)
c - a comparator.c.Copyright © 2016. All rights reserved.