Package org.openremote.model.attribute
Class NamedMap<T extends AbstractNameValueHolder<?>>
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingMap<String,T>
org.openremote.model.attribute.NamedMap<T>
- All Implemented Interfaces:
Serializable
,Map<String,
T>
- Direct Known Subclasses:
AttributeMap
,MetaMap
public class NamedMap<T extends AbstractNameValueHolder<?>>
extends com.google.common.collect.ForwardingMap<String,T>
implements Serializable
Special map for
NameHolder
items where item names are used as map keys.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ForwardingMap
com.google.common.collect.ForwardingMap.StandardEntrySet, com.google.common.collect.ForwardingMap.StandardKeySet, com.google.common.collect.ForwardingMap.StandardValues
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addAll
(Collection<? extends T> c) void
final void
final void
addOrReplace
(Collection<? extends T> items) void
addOrReplace
(Map<? extends String, ? extends T> map) void
addOrReplace
(T item) final void
addOrReplace
(T... items) delegate()
void
<V,
W extends AbstractNameValueHolder<V>>
Optional<W> get
(AbstractNameValueDescriptorHolder<V> nameValueDescriptorHolder) <S> Optional
<S> <S> Optional
<S> getValue
(AbstractNameValueDescriptorHolder<S> nameValueDescriptorProvider) boolean
boolean
has
(NameHolder nameHolder) void
putAll
(Collection<? extends T> c) void
void
stream()
Methods inherited from class com.google.common.collect.ForwardingMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, values
Methods inherited from class com.google.common.collect.ForwardingObject
toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
delegate
-
-
Constructor Details
-
NamedMap
public NamedMap() -
NamedMap
-
NamedMap
-
-
Method Details
-
delegate
- Specified by:
delegate
in classcom.google.common.collect.ForwardingMap<String,
T extends AbstractNameValueHolder<?>>
-
put
-
put
- Specified by:
put
in interfaceMap<String,
T extends AbstractNameValueHolder<?>> - Overrides:
put
in classcom.google.common.collect.ForwardingMap<String,
T extends AbstractNameValueHolder<?>>
-
putAll
- Specified by:
putAll
in interfaceMap<String,
T extends AbstractNameValueHolder<?>> - Overrides:
putAll
in classcom.google.common.collect.ForwardingMap<String,
T extends AbstractNameValueHolder<?>>
-
putAll
-
add
-
addAll
-
addAll
-
addAll
-
addOrReplace
-
addOrReplace
-
addOrReplace
-
addOrReplace
-
get
-
get
public <V,W extends AbstractNameValueHolder<V>> Optional<W> get(AbstractNameValueDescriptorHolder<V> nameValueDescriptorHolder) -
getValue
-
getValue
-
has
-
has
-
stream
-
forEach
-
removeIf
-