|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AttributeBuilder
AttributeBuilder is responsible for creating and indexing
Attributes.
For faster access to Attribute value, each Attribute has
assigned index. AttributeBuilder is responsible to assign each
Attribute unique index.
DefaultAttributeBuilder| Method Summary | ||
|---|---|---|
|
createAttribute(String name)
Create Attribute with name |
|
|
createAttribute(String name,
NullaryFunction<T> initializer)
Create Attribute with name and initializer, which will be called, if Attribute's value is null on a AttributedObject |
|
|
createAttribute(String name,
T defaultValue)
Create Attribute with name and default value |
|
| Method Detail |
|---|
<T> Attribute<T> createAttribute(String name)
T - Type of attribute valuename - attribute name
<T> Attribute<T> createAttribute(String name,
T defaultValue)
T - Type of attribute valuename - attribute namedefaultValue - attribute's default value
<T> Attribute<T> createAttribute(String name,
NullaryFunction<T> initializer)
T - Type of attribute valuename - attribute nameinitializer - NullaryFunction, which will be called, if Attribute's
value is null on a AttributedObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||