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.
 
Method Summary
 int compare(Object arg1, Object arg2)
           
 
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

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 -
Method Detail

compare

public int compare(Object arg1,
                   Object arg2)
Specified by:
compare in interface Comparator