public static class AbstractStringCache.ReverseIntegerComparator extends Object implements Comparator<Integer>, Serializable
Comparator
that considers
higher value integers to be less then lower value integers.Modifier and Type | Field and Description |
---|---|
static Comparator<Integer> |
INSTANCE
The single instance of the comparator.
|
public static final Comparator<Integer> INSTANCE
public int compare(Integer o1, Integer o2)
Overridden to reverse the comparison of integers.
compare
in interface Comparator<Integer>
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.