public interface AttributeMap
extends java.io.Serializable
Attributes to certain values, must implement.| Modifier and Type | Method and Description |
|---|---|
default boolean |
contains(@NotNull Attribute attribute)
Returns, whether a value is associated with a specific
Attribute, or not. |
default boolean |
contains(int attributeIndex)
Returns, whether a value is associated with the
Attribute with a specific index, or
not. |
default @Nullable java.lang.Double |
getValue(@NotNull Attribute attribute)
Returns the value that is associated with a specific
Attribute, if available. |
@Nullable java.lang.Double |
getValue(int attributeIndex)
Returns the value that is associated with the
Attribute with a specific index. |
default boolean |
isEmpty()
Returns, whether the map is empty, or not.
|
int |
size()
Returns the number of attribute-value mappings that are contained by the map.
|
default boolean isEmpty()
int size()
default boolean contains(@NotNull
@NotNull Attribute attribute)
Attribute, or not.attribute - The attribute to be checkeddefault boolean contains(int attributeIndex)
Attribute with a specific index, or
not.attributeIndex - The index of the attribute to be checked@Nullable
default @Nullable java.lang.Double getValue(@NotNull
@NotNull Attribute attribute)
Attribute, if available.attribute - The attribute for which the associated value should be returned@Nullable @Nullable java.lang.Double getValue(int attributeIndex)
Attribute with a specific index.attributeIndex - The index of the attribute for which the associated value should be
returned