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