|
|||||||||
| Home >> All >> com >> RuntimeCollective >> [ sitemap overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.RuntimeCollective.sitemap
Class SiteNodeCreationDateComparator

java.lang.Objectcom.RuntimeCollective.sitemap.SiteNodeCreationDateComparator
- All Implemented Interfaces:
- java.util.Comparator
- public class SiteNodeCreationDateComparator
- extends java.lang.Object
- implements java.util.Comparator
- extends java.lang.Object
This is to sort SiteNodes by CreationDate. Defaults to ascending order; you can construct one with ascendingOrder = false if you want descending order.
| Field Summary | |
private boolean |
ascendingOrder
|
| Constructor Summary | |
SiteNodeCreationDateComparator()
Make a new SiteNodeCreationDateComparator, which orders by CreationDate in ascending order. |
|
SiteNodeCreationDateComparator(boolean ascendingOrder)
Make a new SiteNodeCreationDateComparator, which orders by CreationDate in ascending order. |
|
| Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compare the two SiteNodes |
int |
compare(com.RuntimeCollective.sitemap.bean.SiteNode sn1,
com.RuntimeCollective.sitemap.bean.SiteNode sn2)
Compare the two SiteNodes |
boolean |
equals(java.lang.Object obj)
Returns if the given object is equal to this object |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
ascendingOrder
private boolean ascendingOrder
| Constructor Detail |
SiteNodeCreationDateComparator
public SiteNodeCreationDateComparator()
- Make a new SiteNodeCreationDateComparator, which orders by CreationDate in ascending order.
SiteNodeCreationDateComparator
public SiteNodeCreationDateComparator(boolean ascendingOrder)
- Make a new SiteNodeCreationDateComparator, which orders by CreationDate in ascending order.
| Method Detail |
compare
public int compare(java.lang.Object o1, java.lang.Object o2)
- Compare the two SiteNodes
- Specified by:
comparein interfacejava.util.Comparator
compare
public int compare(com.RuntimeCollective.sitemap.bean.SiteNode sn1, com.RuntimeCollective.sitemap.bean.SiteNode sn2)
- Compare the two SiteNodes
equals
public boolean equals(java.lang.Object obj)
- Returns if the given object is equal to this object
- Specified by:
equalsin interfacejava.util.Comparator
|
|||||||||
| Home >> All >> com >> RuntimeCollective >> [ sitemap overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.RuntimeCollective.sitemap.SiteNodeCreationDateComparator