|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.accountingenhancements.treearray.Leaf<E>
public class Leaf<E>
Leaf values and attributes
Field Summary | |
---|---|
protected java.util.HashMap<java.lang.String,java.lang.Object> |
attributes
|
protected E |
leafValue
|
Constructor Summary | |
---|---|
Leaf(E value)
Creates a new instance of Leaf |
|
Leaf(E value,
java.lang.String attribute,
java.lang.Object attributeValue)
Creates a new instance of Leaf with an initial attribute |
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String attribute)
Get the value of a previously set attributre |
E |
getLeaf()
|
Leaf<E> |
setAttribute(java.lang.String attribute,
java.lang.Object value)
Set an attribute relating to this leaf |
void |
setLeaf(E value)
Replace the value in the leaf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient E leafValue
protected transient java.util.HashMap<java.lang.String,java.lang.Object> attributes
Constructor Detail |
---|
public Leaf(E value)
value
- the value to assign the new leafpublic Leaf(E value, java.lang.String attribute, java.lang.Object attributeValue)
value
- the value to assign the new leafattribute
- an attribute nameattributeValue
- an attribute valueMethod Detail |
---|
public void setLeaf(E value)
value
- the new leaf valuepublic E getLeaf()
public Leaf<E> setAttribute(java.lang.String attribute, java.lang.Object value)
attribute
- the name of the attributevalue
- the value of the attribute
public java.lang.Object getAttribute(java.lang.String attribute)
attribute
- the name of the attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |