com.amazon.carbonado.util
Class Comparators

java.lang.Object
  extended by com.amazon.carbonado.util.Comparators

public class Comparators
extends Object

Collection of utility comparators.

Author:
Brian S O'Neill

Constructor Summary
Comparators()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comparators

public Comparators()
Method Detail

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.