Add copyFrom method to Node.Builder

This commit is contained in:
Luck
2018-03-01 09:19:26 +00:00
Unverified
parent fbe84322b5
commit 8f82ef7eb4
2 changed files with 23 additions and 6 deletions
@@ -444,6 +444,16 @@ public interface Node {
*/
interface Builder {
/**
* Copies the attributes from the given node and applies them to this
* builder.
*
* @param node the node to copy from
* @return the builder
* @since 4.2
*/
Builder copyFrom(@Nonnull Node node);
/**
* Sets the value of negated for the node.
*