com.mysema.query.util
Class NullSafeComparableComparator<T extends Comparable<T>>

java.lang.Object
  extended by com.mysema.query.util.NullSafeComparableComparator<T>
Type Parameters:
T -
All Implemented Interfaces:
Serializable, Comparator<T>

public class NullSafeComparableComparator<T extends Comparable<T>>
extends Object
implements Comparator<T>, Serializable

Author:
tiwe
See Also:
Serialized Form

Constructor Summary
NullSafeComparableComparator()
           
 
Method Summary
 int compare(T obj1, T obj2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

NullSafeComparableComparator

public NullSafeComparableComparator()
Method Detail

compare

public int compare(T obj1,
                   T obj2)
Specified by:
compare in interface Comparator<T extends Comparable<T>>


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.