public interface Attributes
Attributes attributes = Attributes.builder()
.build()
Modifier and Type | Method and Description |
---|---|
static AttributesBuilder |
builder() |
static AttributesBuilder |
builder(Attributes template) |
static Attributes |
of() |
static Attributes |
of(Attributes template) |
void |
setValue(String key,
Attribute value) |
static com.fasterxml.jackson.core.type.TypeReference<Attributes> |
typeReference() |
@NotNull Map<String,Attribute> |
values()
The name of the attribute is given by the key and shouldn't be set on the attribute itself.
|
default <T> T |
withAttributes(Function<Attributes,T> helper) |
@NotNull @NotNull Map<String,Attribute> values()
The name of the attribute is given by the key and shouldn't be set on the attribute itself. And since this property will be represented as a map, we can set individual attributes to null to delete them (which follows JSON Merge Patch semantics).
static Attributes of()
static Attributes of(Attributes template)
static AttributesBuilder builder()
static AttributesBuilder builder(Attributes template)
default <T> T withAttributes(Function<Attributes,T> helper)
static com.fasterxml.jackson.core.type.TypeReference<Attributes> typeReference()