Interface AttributesBuilder
Attributes
supporting an arbitrary number of key-value pairs.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create theAttributes
from this.put
(AttributeKey<Long> key, int value) Puts aAttributeKey
with associated value into this.put
(AttributeKey<T> key, T value) Puts aAttributeKey
with associated value into this.default AttributesBuilder
Puts a boolean attribute into this.default AttributesBuilder
Puts a Boolean array attribute into this.default AttributesBuilder
Puts a double attribute into this.default AttributesBuilder
Puts a Double array attribute into this.default AttributesBuilder
Puts a long attribute into this.default AttributesBuilder
Puts a Long array attribute into this.default AttributesBuilder
Puts a String attribute into this.default AttributesBuilder
Puts a String array attribute into this.putAll
(Attributes attributes) Puts all the provided attributes into this Builder.
-
Method Details
-
build
Attributes build()Create theAttributes
from this. -
put
Puts aAttributeKey
with associated value into this.The type parameter is unused.
-
put
Puts aAttributeKey
with associated value into this. -
put
Puts a String attribute into this.Note: It is strongly recommended to use
put(AttributeKey, Object)
, and pre-allocate your keys, if possible.- Returns:
- this Builder
-
put
Puts a long attribute into this.Note: It is strongly recommended to use
put(AttributeKey, Object)
, and pre-allocate your keys, if possible.- Returns:
- this Builder
-
put
Puts a double attribute into this.Note: It is strongly recommended to use
put(AttributeKey, Object)
, and pre-allocate your keys, if possible.- Returns:
- this Builder
-
put
Puts a boolean attribute into this.Note: It is strongly recommended to use
put(AttributeKey, Object)
, and pre-allocate your keys, if possible.- Returns:
- this Builder
-
put
Puts a String array attribute into this.Note: It is strongly recommended to use
put(AttributeKey, Object)
, and pre-allocate your keys, if possible.- Returns:
- this Builder
-
put
Puts a Long array attribute into this.Note: It is strongly recommended to use
put(AttributeKey, Object)
, and pre-allocate your keys, if possible.- Returns:
- this Builder
-
put
Puts a Double array attribute into this.Note: It is strongly recommended to use
put(AttributeKey, Object)
, and pre-allocate your keys, if possible.- Returns:
- this Builder
-
put
Puts a Boolean array attribute into this.Note: It is strongly recommended to use
put(AttributeKey, Object)
, and pre-allocate your keys, if possible.- Returns:
- this Builder
-
putAll
Puts all the provided attributes into this Builder.- Returns:
- this Builder
-