K - The type of attribute key.V - The type of attribute value.public interface IAttributeMap<K,V>
getAttributes method. All other methods have default implementations.| Modifier and Type | Method and Description |
|---|---|
default V |
getAttribute(K key)
Returns the value of the keyed attribute.
|
Map<K,V> |
getAttributes()
Returns the attribute map.
|
default boolean |
hasAttribute(K key)
Returns true if the keyed attribute exists.
|
default V |
removeAttribute(K key)
Removes the keyed attribute.
|
default V |
setAttribute(K key,
V value)
Sets the value of the keyed attribute.
|
default boolean hasAttribute(K key)
key - The attribute key.default V getAttribute(K key)
key - The attribute key.default V setAttribute(K key, V value)
key - The attribute key.value - The new value.Copyright © 2023 Fujion Framework. All rights reserved.