public static class Node.Builder
extends java.lang.Object
Node.Builder
can be used to construct a Node
little by
little.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Node.Builder |
attr(java.lang.String key,
java.lang.Object value)
Puts the given key-value-pair into the
attributes map of the Node which is
constructed by this Node.Builder . |
Node |
build()
Constructs a new
Node from the values which have been
supplied to this Node.Builder . |
public Node.Builder attr(java.lang.String key, java.lang.Object value)
attributes map
of the Node
which is
constructed by this Node.Builder
.key
- The attribute name which is inserted.value
- The attribute value which is inserted.this
for convenience.public Node build()
Node
from the values which have been
supplied to this Node.Builder
.Node
from the values which have been supplied
to this Node.Builder
.Copyright (c) 2014 itemis AG and others. All rights reserved.