public class AttributeMap extends Object
Constructor and Description |
---|
AttributeMap() |
AttributeMap(Map<AttributeKey,Object> map) |
Modifier and Type | Method and Description |
---|---|
<V> V |
computeIfAbsent(AttributeKey<V> key,
Throwing.Function<AttributeKey<V>,V> mappingFunction) |
boolean |
contains(AttributeKey<?> key) |
<V> V |
get(AttributeKey<V> key) |
<V> V |
getOrDefault(AttributeKey<V> key,
V value) |
<V> V |
getOrNull(AttributeKey<V> key) |
Set<AttributeKey> |
keySet() |
<V> V |
put(AttributeKey<V> key,
V value) |
<V> V |
putIfAbsent(AttributeKey<V> key,
V value) |
<V> V |
remove(AttributeKey<V> key) |
Map<String,Object> |
toMap() |
public AttributeMap(Map<AttributeKey,Object> map)
public AttributeMap()
public boolean contains(@Nonnull AttributeKey<?> key)
@Nullable public <V> V computeIfAbsent(@Nonnull AttributeKey<V> key, @Nonnull Throwing.Function<AttributeKey<V>,V> mappingFunction)
@Nonnull public <V> V get(@Nonnull AttributeKey<V> key)
@Nullable public <V> V getOrNull(@Nonnull AttributeKey<V> key)
@Nonnull public <V> V getOrDefault(@Nonnull AttributeKey<V> key, @Nonnull V value)
@Nullable public <V> V put(@Nonnull AttributeKey<V> key, @Nonnull V value)
@Nullable public <V> V putIfAbsent(@Nonnull AttributeKey<V> key, @Nonnull V value)
@Nullable public <V> V remove(@Nonnull AttributeKey<V> key)
@Nonnull public Set<AttributeKey> keySet()
Copyright © 2019. All rights reserved.