Class SortableDataProviderComparator<T>
- java.lang.Object
-
- org.apache.syncope.client.console.commons.SortableDataProviderComparator<T>
-
- All Implemented Interfaces:
Serializable
,Comparator<T>
- Direct Known Subclasses:
SortableAnyProviderComparator
public class SortableDataProviderComparator<T> extends Object implements Comparator<T>, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SortableDataProvider<T,String>
provider
-
Constructor Summary
Constructors Constructor Description SortableDataProviderComparator(SortableDataProvider<T,String> provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
compare(IModel<Comparable> model1, IModel<Comparable> model2)
int
compare(T object1, T object2)
-
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
provider
protected final SortableDataProvider<T,String> provider
-
-
Constructor Detail
-
SortableDataProviderComparator
public SortableDataProviderComparator(SortableDataProvider<T,String> provider)
-
-
Method Detail
-
compare
protected int compare(IModel<Comparable> model1, IModel<Comparable> model2)
-
compare
public int compare(T object1, T object2)
- Specified by:
compare
in interfaceComparator<T>
-
-