public class LayeredNodeLevelComparator extends java.lang.Object implements java.util.Comparator<LayeredNode>
Constructor and Description |
---|
LayeredNodeLevelComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(LayeredNode n1,
LayeredNode n2)
This method returns the result of comparison of the level numbers
of two layered nodes.
|
public int compare(LayeredNode n1, LayeredNode n2)
compare
in interface java.util.Comparator<LayeredNode>
n1
- the first layered node.n2
- the second layered node.