org.apache.wiki.util.comparators
Class PageTimeComparator
java.lang.Object
org.apache.wiki.util.comparators.PageTimeComparator
- All Implemented Interfaces:
- Serializable, Comparator<WikiPage>
public class PageTimeComparator
- extends Object
- implements Comparator<WikiPage>, Serializable
Compares the lastModified date of its arguments. Both o1 and o2 MUST
be WikiPage objects, or else you will receive a ClassCastException.
If the lastModified date is the same, then the next key is the page name.
If the page name is also equal, then returns 0 for equality.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageTimeComparator
public PageTimeComparator()
compare
public int compare(WikiPage w1,
WikiPage w2)
-
- Specified by:
compare
in interface Comparator<WikiPage>
Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.