org.mmbase.applications.media.filters
Class Sorter
java.lang.Object
org.mmbase.applications.media.filters.Sorter
- All Implemented Interfaces:
- java.util.Comparator, Filter
- Direct Known Subclasses:
- ChainSorter, PreferenceSorter
- public abstract class Sorter
- extends java.lang.Object
- implements java.util.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 |
| Methods inherited from interface java.util.Comparator |
equals |
Sorter
public Sorter()
compareURLComposer
protected abstract int compareURLComposer(URLComposer o1,
URLComposer o2)
- Implement this.
configure
public void configure(XMLBasicReader reader,
org.w3c.dom.Element e)
- Specified by:
configure in interface Filter
compare
public final int compare(java.lang.Object o1,
java.lang.Object o2)
- Specified by:
compare in interface java.util.Comparator
filter
public final java.util.List filter(java.util.List urlcomposers)
- Specified by:
filter in interface Filter
MMBase build 1.7.1.20041002