public class SortableDataProviderComparator<T> extends Object implements Comparator<T>, Serializable
Modifier and Type | Field and Description |
---|---|
protected SortableDataProvider<T,String> |
provider |
Constructor and Description |
---|
SortableDataProviderComparator(SortableDataProvider<T,String> provider) |
Modifier and Type | Method and Description |
---|---|
protected int |
compare(IModel<Comparable> model1,
IModel<Comparable> model2) |
int |
compare(T object1,
T object2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected final SortableDataProvider<T,String> provider
public SortableDataProviderComparator(SortableDataProvider<T,String> provider)
protected int compare(IModel<Comparable> model1, IModel<Comparable> model2)
public int compare(T object1, T object2)
compare
in interface Comparator<T>
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.