ehcache

net.sf.ehcache.search.impl
Class OrderComparator<T extends BaseResult>

java.lang.Object
  extended by 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

Constructor Summary
OrderComparator(List<StoreQuery.Ordering> orderings)
          Constructor
 
Method Summary
 int compare(T o1, T o2)
          
 
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

OrderComparator

public OrderComparator(List<StoreQuery.Ordering> orderings)
Constructor

Parameters:
orderings -
Method Detail

compare

public int compare(T o1,
                   T o2)

Specified by:
compare in interface Comparator<T extends BaseResult>

ehcache

Copyright 2001-2017, Terracotta, Inc.