public interface MessageListStore<K,M extends PMessage<M,F>,F extends PField> extends MessageListReadOnlyStore<K,M,F>
| Modifier and Type | Method and Description |
|---|---|
default List<M> |
put(K key,
List<M> list) |
Map<K,List<M>> |
putAll(Map<K,List<M>> values) |
default <B extends PMessageBuilder<M,F>> |
putAllBuilders(Map<K,List<B>> builders)
Put messages into the map represented by their builders.
|
default <B extends PMessageBuilder<M,F>> |
putBuilders(K key,
List<B> builders)
Put messages into the map represented by their builders.
|
default List<M> |
remove(K key) |
Map<K,List<M>> |
removeAll(Collection<K> keys)
Remove the values for the given keys;
|
containsKey, get, getAll, getAllBuilders, getBuilders, keys@Nonnull Map<K,List<M>> putAll(@Nonnull Map<K,List<M>> values)
values - Put all key value pairs form this map into the storage.
The list of messages should not contain null items.@Nonnull Map<K,List<M>> removeAll(Collection<K> keys)
keys - Map of removed key value pairs.@Nullable default List<M> put(@Nonnull K key, @Nonnull List<M> list)
key - The key to put message at.list - The list of message to put. The list should not contain
null items.@Nullable default List<M> remove(@Nonnull K key)
key - Entry key to remove from map.@Nullable default <B extends PMessageBuilder<M,F>> List<B> putBuilders(@Nonnull K key, @Nonnull List<B> builders)
B - The builder type.key - The key to put builders to.builders - The list of builders to put.@Nonnull default <B extends PMessageBuilder<M,F>> Map<K,List<B>> putAllBuilders(@Nonnull Map<K,List<B>> builders)
B - The builder type.builders - Map of key to list of builders.Copyright © 2015–2018 morimekta.net. All rights reserved.