예제 #1
0
 /**
  * Constructs node from given node.
  *
  * @param node whose parameters will be used.
  */
 public Node(Node node) {
   this(node.getName(), node.getValue());
 }
예제 #2
0
 @Override
 public int compareTo(Node o) {
   return value.compareTo(o.getValue());
 }