org.syncope.console.commons
Class SortableDataProviderComparator<T>

java.lang.Object
  extended by org.syncope.console.commons.SortableDataProviderComparator<T>
All Implemented Interfaces:
Serializable, Comparator<T>
Direct Known Subclasses:
SortableUserProviderComparator

public class SortableDataProviderComparator<T>
extends Object
implements Comparator<T>, Serializable

See Also:
Serialized Form

Field Summary
protected  org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T> provider
           
 
Constructor Summary
SortableDataProviderComparator(org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T> provider)
           
 
Method Summary
protected  int compare(org.apache.wicket.model.IModel<Comparable> model1, org.apache.wicket.model.IModel<Comparable> model2)
           
 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
 

Field Detail

provider

protected final org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T> provider
Constructor Detail

SortableDataProviderComparator

public SortableDataProviderComparator(org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T> provider)
Method Detail

compare

protected int compare(org.apache.wicket.model.IModel<Comparable> model1,
                      org.apache.wicket.model.IModel<Comparable> model2)

compare

public int compare(T o1,
                   T o2)
Specified by:
compare in interface Comparator<T>


Copyright © 2011. All Rights Reserved.