org.mmbase.applications.media.filters
Class Sorter
java.lang.Object
org.mmbase.applications.media.filters.Sorter
- All Implemented Interfaces:
- Comparator<URLComposer>, Filter
- Direct Known Subclasses:
- ChainSorter, PreferenceSorter
public abstract class Sorter
- extends Object
- implements Comparator<URLComposer>, 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)
- Configure with setters on default
- Specified by:
configure in interface Filter
compare
public final int compare(URLComposer ri1,
URLComposer ri2)
- Specified by:
compare in interface Comparator<URLComposer>
filter
public final List<URLComposer> filter(List<URLComposer> urlcomposers)
- Specified by:
filter in interface Filter
MMBase 2.0-SNAPSHOT - null