ca.quine.jcommons.freemind.maputil
Class NodeItemComparator
java.lang.Object
|
+--ca.quine.jcommons.freemind.maputil.NodeItemComparator
- All Implemented Interfaces:
- Comparator
- public class NodeItemComparator
- extends Object
- implements Comparator
Constructor Summary |
NodeItemComparator()
Creates a NodeItemComparator which compares the String values of the
Nodes within the NodeItems with a StringComparator. |
NodeItemComparator(NodeComparator nodeComparator)
Creates a NodeItemComparator which compares the Node instances within
the NodeItems provided with the given NodeComparator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeItemComparator
public NodeItemComparator()
- Creates a NodeItemComparator which compares the String values of the
Nodes within the NodeItems with a StringComparator.
NodeItemComparator
public NodeItemComparator(NodeComparator nodeComparator)
- Creates a NodeItemComparator which compares the Node instances within
the NodeItems provided with the given NodeComparator.
- Parameters:
nodeComparator
-
compare
public int compare(Object arg1,
Object arg2)
- Specified by:
compare
in interface Comparator