public final class AttributesMap extends Object implements Serializable
attributes.| Modifier and Type | Class and Description |
|---|---|
static class |
AttributesMap.Builder
Builder to incrementally construct an immutable
AttributesMap. |
static class |
AttributesMap.Config
Switches to indicate behavior other than default.
|
| Modifier and Type | Field and Description |
|---|---|
static AttributesMap |
EMPTY
An empty map with no attributes.
|
| Modifier and Type | Method and Description |
|---|---|
static AttributesMap.Builder |
buildNew(AttributesMap.Config... configSwitches) |
boolean |
equals(Object obj) |
<V> V |
get(GetsNamedValue<V> attribute)
Retrieve a required attribute value.
|
int |
hashCode() |
boolean |
isEmpty() |
int |
size() |
String |
toString() |
static <V> AttributesMap.Builder |
with(SetsNamedValue<V> attribute,
V value,
AttributesMap.Config... configSwitches) |
static <V> AttributesMap.Builder |
with(ViewableAsTuple<? extends SetsNamedValue<V>,V> attributeWithValue,
AttributesMap.Config... configSwitches) |
public static final AttributesMap EMPTY
public static <V> AttributesMap.Builder with(ViewableAsTuple<? extends SetsNamedValue<V>,V> attributeWithValue, AttributesMap.Config... configSwitches)
public static <V> AttributesMap.Builder with(SetsNamedValue<V> attribute, V value, AttributesMap.Config... configSwitches)
public static AttributesMap.Builder buildNew(AttributesMap.Config... configSwitches)
public <V> V get(GetsNamedValue<V> attribute)
attribute - the attribute to retrieve.GetsNamedValue.NotFound - if the attribute is not present.public int size()
public boolean isEmpty()
true if this map contains no attributes, false otherwise.Copyright © 2018 Digipost. All rights reserved.