org.olat.modules.wiki
Class WikiPageComparator
java.lang.Object
org.olat.modules.wiki.WikiPageComparator
- All Implemented Interfaces:
- java.io.Serializable, java.util.Comparator<WikiPage>
public class WikiPageComparator
- extends java.lang.Object
- implements java.util.Comparator<WikiPage>, java.io.Serializable
This comparator is intended to compare two wiki pages by their page name. The
comparison is done with respect to the current locale. (The Serializable
interface is recommended.)
Initial Date: Jun 12, 2009
- Author:
- gwassmann
- See Also:
- Serialized Form
|
Method Summary |
int |
compare(WikiPage a,
WikiPage b)
Compares the name of page 'a' to that of page 'b' with respect to the
current locale (different languages have different alphabets and hence
different orders). |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
WikiPageComparator
public WikiPageComparator()
compare
public int compare(WikiPage a,
WikiPage b)
- Compares the name of page 'a' to that of page 'b' with respect to the
current locale (different languages have different alphabets and hence
different orders).
- Specified by:
compare in interface java.util.Comparator<WikiPage>
- See Also:
Comparator.compare(java.lang.Object, java.lang.Object)