public class CombinedComparator extends Object implements Comparator<Message<?>>
Comparator
which takes a Array of other Comparator
's and use them to compare two Message
instances till one of them
return <> 0Constructor and Description |
---|
CombinedComparator(Comparator<Message<?>>[] comparators) |
Modifier and Type | Method and Description |
---|---|
int |
compare(Message<?> o1,
Message<?> o2) |
static Comparator<Message<?>> |
create(List<SearchQuery.Sort> sorts) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public CombinedComparator(Comparator<Message<?>>[] comparators)
public int compare(Message<?> o1, Message<?> o2)
compare
in interface Comparator<Message<?>>
public static Comparator<Message<?>> create(List<SearchQuery.Sort> sorts)
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.