public abstract class Attributes
extends java.lang.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 java.util.Map<java.lang.String,java.lang.Object> |
attributes(Attributes.Attribute... attributes)
Creates a
Map of the given attributes . |
static Attributes.AttributeBuilder |
key(java.lang.String key)
Creates an attribute with the given
key . |
public static Attributes.AttributeBuilder key(java.lang.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 java.util.Map<java.lang.String,java.lang.Object> attributes(Attributes.Attribute... attributes)
Map
of the given attributes
.attributes
- The attributes