|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.applications.media.filters.Sorter
org.mmbase.applications.media.filters.PreferenceSorter
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.
| Constructor Summary | |
PreferenceSorter()
|
|
| Method Summary | |
protected int |
compareURLComposer(URLComposer o1,
URLComposer o2)
Implement this. |
protected abstract int |
getPreference(URLComposer o)
Implement a preference for this URLComposer |
| Methods inherited from class org.mmbase.applications.media.filters.Sorter |
compare, configure, filter |
| 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 |
| Constructor Detail |
public PreferenceSorter()
| Method Detail |
protected abstract int getPreference(URLComposer o)
protected final int compareURLComposer(URLComposer o1,
URLComposer o2)
Sorter
compareURLComposer in class Sorter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||