protected static class ScopedDictionary.Node<K,V>
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.util.Map<K,V> |
dictionary
Represents an instance of dictionary.
|
private java.lang.Object |
extra
Stores a user supplied object associated with the dictionary.
|
Constructor and Description |
---|
Node(java.lang.Object extra)
The only constructor.
|
Modifier and Type | Method and Description |
---|---|
protected ScopedDictionary.Node<K,V> |
clone()
Clone this instance.
|
java.util.Map<K,V> |
getDictionary(boolean create)
Accesses the dictionary at this node.
|
java.lang.Object |
getExtra()
Accesses the user supplied object at this node.
|
void |
setExtra(java.lang.Object extra)
Replaces the user supplied object at this node.
|
private java.lang.Object extra
public Node(java.lang.Object extra)
extra
- Any object that will be associated with this node.protected ScopedDictionary.Node<K,V> clone()
clone
in class java.lang.Object
public java.util.Map<K,V> getDictionary(boolean create)
create
- true
to create a dictionary for this node if
one does not already exist; false
to use have
an empty (immutable) dictionary returned if one does not
already exist.public java.lang.Object getExtra()
public void setExtra(java.lang.Object extra)
extra
- Any object that will be associated with this node.