public abstract class Attributes extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Attributes.Attribute
An attribute (key-value pair).
|
static class |
Attributes.AttributeBuilder
A simple builder for an attribute (key-value pair).
|
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
attributes(Attributes.Attribute... attributes)
Creates a
Map of the given attributes. |
static Attributes.AttributeBuilder |
key(String key)
Creates an attribute with the given
key. |
public static Attributes.AttributeBuilder key(String key)
key. A value for the attribute must
still be specified.key - The key of the attributeAttributeBuilder to use to specify the value of the attributeAttributes.AttributeBuilder.value(Object)public static Map<String,Object> attributes(Attributes.Attribute... attributes)
Map of the given attributes.attributes - The attributes