org.mmbase.applications.media.filters
Class Sorter
java.lang.Object
org.mmbase.applications.media.filters.Sorter
- All Implemented Interfaces:
- Comparator, Filter
- Direct Known Subclasses:
- ChainSorter, PreferenceSorter
- public abstract class Sorter
- extends Object
- implements Comparator, Filter
Implements a Filter as a Comparator. That means that it only sorts,
and the implementation is done by calling Collections.sort. You can
be sure that no URLComposers are removed during the filter process.
- Author:
- Michiel Meeuwissen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sorter
public Sorter()
compareURLComposer
protected abstract int compareURLComposer(URLComposer o1,
URLComposer o2)
- Implement this.
configure
public void configure(DocumentReader reader,
Element e)
- Specified by:
configure in interface Filter
compare
public final int compare(Object o1,
Object o2)
- Specified by:
compare in interface Comparator
filter
public final List filter(List urlcomposers)
- Specified by:
filter in interface Filter
MMBase build 1.8.1.20060716