net.sf.ehcache.search.impl
Class OrderComparator<T extends BaseResult>
java.lang.Object
net.sf.ehcache.search.impl.OrderComparator<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- Comparator<T>
public class OrderComparator<T extends BaseResult>
- extends Object
- implements Comparator<T>
Compound sort ordering comparactor
- Author:
- teck
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrderComparator
public OrderComparator(List<StoreQuery.Ordering> orderings)
- Constructor
- Parameters:
orderings
-
compare
public int compare(T o1,
T o2)
-
- Specified by:
compare
in interface Comparator<T extends BaseResult>
Copyright 2001-2015, Terracotta, Inc.