net.sourceforge.cilib.util.selection.ordering
Class ReverseOrdering<E>
java.lang.Object
net.sourceforge.cilib.util.selection.ordering.ReverseOrdering<E>
- Type Parameters:
E
- The selection type.
- All Implemented Interfaces:
- Ordering<E>
public class ReverseOrdering<E>
- extends Object
- implements Ordering<E>
Reverse the ordering of the provided list of entries.
- Author:
- Wiehann Matthysen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReverseOrdering
public ReverseOrdering()
order
public boolean order(List<Selection.Entry<E>> elements)
- Apply the ordering on the provided list. The resulting list will be the reverse order of
elements
.
- Specified by:
order
in interface Ordering<E>
- Parameters:
elements
- The list to be ordered.
- Returns:
true
if successful, false
otherwise.
Copyright © 2009 CIRG. All Rights Reserved.