org.dspace.app.xmlui.aspect.administrative
Class ControlPanel.ActivitySort<E extends CurrentActivityAction.Event>

java.lang.Object
  extended by 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

Constructor Summary
ControlPanel.ActivitySort(org.dspace.app.xmlui.aspect.administrative.ControlPanel.EventSort sortBy)
           
 
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
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ControlPanel.ActivitySort

public ControlPanel.ActivitySort(org.dspace.app.xmlui.aspect.administrative.ControlPanel.EventSort sortBy)
Method Detail

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 © 2012 DuraSpace. All Rights Reserved.