public interface AttributeStore
Modifier and Type | Interface and Description |
---|---|
static class |
AttributeStore.AttributeKey<T>
Type safe key for storage of user attributes.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
getAttribute(AttributeStore.AttributeKey<T> key)
Returns the value of the user-defined attribute.
|
<T> T |
removeAttribute(AttributeStore.AttributeKey<T> key)
Removes the user-defined attribute
|
<T> T |
resolveAttribute(AttributeStore.AttributeKey<T> key)
Attempts to resolve the associated value by going up the store's
hierarchy (if any)
|
<T> T |
setAttribute(AttributeStore.AttributeKey<T> key,
T value)
Sets a user-defined attribute.
|
<T> T getAttribute(AttributeStore.AttributeKey<T> key)
T
- The generic attribute typekey
- The key of the attribute; must not be null
.null
if there is no value associated with the specified key<T> T setAttribute(AttributeStore.AttributeKey<T> key, T value)
T
- The generic attribute typekey
- The key of the attribute; must not be null
.value
- The value of the attribute; must not be null
.null
if it is new.<T> T removeAttribute(AttributeStore.AttributeKey<T> key)
T
- The generic attribute typekey
- The key of the attribute; must not be null
.null
if no previous value<T> T resolveAttribute(AttributeStore.AttributeKey<T> key)
T
- The generic attribute typekey
- The key of the attribute; must not be null
.null
if there is no value associated with the specified keyCopyright © 2008–2018 The Apache Software Foundation. All rights reserved.