org.dspace.app.xmlui.aspect.administrative
Class ControlPanel.ActivitySort<E extends CurrentActivityAction.Event>
java.lang.Object
org.dspace.app.xmlui.aspect.administrative.ControlPanel.ActivitySort<E>
- All Implemented Interfaces:
- Serializable, Comparator<E>
- Enclosing class:
- ControlPanel
public static class ControlPanel.ActivitySort<E extends CurrentActivityAction.Event>
- extends Object
- implements Comparator<E>, Serializable
Comparator to sort activity events by their access times.
- See Also:
- Serialized Form
|
Method Summary |
int |
compare(E a,
E b)
Compare these two activity events based upon the given sort parameter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControlPanel.ActivitySort
public ControlPanel.ActivitySort(org.dspace.app.xmlui.aspect.administrative.ControlPanel.EventSort sortBy)
compare
public int compare(E a,
E b)
- Compare these two activity events based upon the given sort parameter. In the case of a tie,
allways fallback to sorting based upon the timestamp.
- Specified by:
compare in interface Comparator<E extends CurrentActivityAction.Event>
Copyright © 2011 DuraSpace. All Rights Reserved.