org.mmbase.applications.media.filters
Class PreferenceSorter
java.lang.Object
org.mmbase.applications.media.filters.Sorter
org.mmbase.applications.media.filters.PreferenceSorter
- All Implemented Interfaces:
- Comparator<URLComposer>, Filter
- Direct Known Subclasses:
- AvailableSorter, ClientFormatSorter, FieldValueSorter, NodeTypeSorter, RealSorter.ChannelsSorter, RealSorter.RealFormatSorter, RealSorter.SpeedSorter, ServerDimensionSorter, ServerFormatSorter
public abstract class PreferenceSorter
- extends Sorter
Facilitates implementing Sorter by defining the 'preference' of one
object. A preference is just an int. The higher, the better. Only
for ease of implementation of descendants.
- Author:
- Michiel Meeuwissen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreferenceSorter
public PreferenceSorter()
getPreference
protected abstract int getPreference(URLComposer o)
- Implement a preference for this URLComposer
compareURLComposer
protected final int compareURLComposer(URLComposer o1,
URLComposer o2)
- Description copied from class:
Sorter
- Implement this.
- Specified by:
compareURLComposer in class Sorter
MMBase 2.0-SNAPSHOT - null