Attributes. For faster access to
Attribute value, each Attribute has assigned index. AttributeBuilder is responsible to
assign each Attribute unique index.
DefaultAttributeBuilder
| Modifier and Type | Field and Description |
|---|---|
| public static final AttributeBuilder | DEFAULT_ATTRIBUTE_BUILDER
The default |
| Modifier and Type | Method and Description |
|---|---|
| public < Type of attribute value T> Attribute | |
| public < Type of attribute value T> Attribute | Returns: Attributeattribute name name, T attribute's default value defaultValue)Create Attribute with name and default value |
| public < Type of attribute value T> Attribute | Returns: Attributeattribute name name, Supplier<T> Supplier, which will be called, if Attribute's value is null on a AttributedObjectCreate Attribute with name and initializer, which will be called, if Attribute's value is null on a AttributedObject |
| public AttributeHolder | Returns: thread-safeAttributeHolderCreates and returns new thread-safe |
| public AttributeHolder | Returns: non thread-safeAttributeHolderCreates and returns new non thread-safe |
| DEFAULT_ATTRIBUTE_BUILDER | back to summary |
|---|---|
| public static final AttributeBuilder DEFAULT_ATTRIBUTE_BUILDER
The default
The default may be changed by setting the system property
| |
| createAttribute | back to summary |
|---|---|
| public <T> Attribute Create Attribute with name | |
| createAttribute | back to summary |
|---|---|
| public <T> Attribute Create Attribute with name and default value | |
| createAttribute | back to summary |
|---|---|
| public <T> Attribute Create Attribute with name and initializer, which will be called, if Attribute's value is null on a AttributedObject | |
| createSafeAttributeHolder | back to summary |
|---|---|
| public AttributeHolder createSafeAttributeHolder() Creates and returns new thread-safe
| |
| createUnsafeAttributeHolder | back to summary |
|---|---|
| public AttributeHolder createUnsafeAttributeHolder() Creates and returns new non thread-safe
| |