com.amazon.carbonado.util
Class Comparators
java.lang.Object
com.amazon.carbonado.util.Comparators
public class Comparators
- extends Object
Collection of utility comparators.
- Author:
- Brian S O'Neill
|
Method Summary |
static
|
arrayComparator(Class<T> arrayType,
boolean unsigned)
Returns a comparator which can sort single or multi-dimensional arrays
of primitves or Comparables. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Comparators
public Comparators()
arrayComparator
public static <T> Comparator<T> arrayComparator(Class<T> arrayType,
boolean unsigned)
- Returns a comparator which can sort single or multi-dimensional arrays
of primitves or Comparables.
- Parameters:
unsigned - applicable only to arrays of bytes, shorts, ints, or longs
- Returns:
- null if unsupported
Copyright © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.