barsuift.simLife.tree
Class TreeLeafComparator

java.lang.Object
  extended by barsuift.simLife.tree.TreeLeafComparator
All Implemented Interfaces:
java.util.Comparator<TreeLeaf>

public class TreeLeafComparator
extends java.lang.Object
implements java.util.Comparator<TreeLeaf>


Constructor Summary
TreeLeafComparator()
           
 
Method Summary
 int compare(TreeLeaf o1, TreeLeaf o2)
          Returns the difference of distance of the 2 arguments from the origin.
 
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

TreeLeafComparator

public TreeLeafComparator()
Method Detail

compare

public int compare(TreeLeaf o1,
                   TreeLeaf o2)
Returns the difference of distance of the 2 arguments from the origin.

Specified by:
compare in interface java.util.Comparator<TreeLeaf>


Copyright © 2010. All Rights Reserved.