Package net.morimekta.providence.storage
Interface MessageListStore<K,M extends net.morimekta.providence.PMessage<M>>
-
- Type Parameters:
K
- The key type.M
- The stored message type.
- All Superinterfaces:
MessageListReadOnlyStore<K,M>
,ReadOnlyStore<K,java.util.List<M>>
,ReadWriteStore<K,java.util.List<M>>
- All Known Implementing Classes:
DirectoryMessageListStore
,InMemoryMessageListStore
public interface MessageListStore<K,M extends net.morimekta.providence.PMessage<M>> extends MessageListReadOnlyStore<K,M>, ReadWriteStore<K,java.util.List<M>>
Interface for storing messages of a single type.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <B extends net.morimekta.providence.PMessageBuilder<M>>
voidputAllBuilders(java.util.Map<K,java.util.List<B>> builders)
Put messages into the map represented by their builders.default <B extends net.morimekta.providence.PMessageBuilder<M>>
voidputBuilders(K key, java.util.List<B> builders)
Put messages into the map represented by their builders.-
Methods inherited from interface net.morimekta.providence.storage.MessageListReadOnlyStore
getAllBuilders, getBuilders
-
Methods inherited from interface net.morimekta.providence.storage.ReadOnlyStore
containsKey, get, getAll, keys, size
-
Methods inherited from interface net.morimekta.providence.storage.ReadWriteStore
put, putAll, remove, removeAll
-
-
-
-
Method Detail
-
putBuilders
default <B extends net.morimekta.providence.PMessageBuilder<M>> void putBuilders(@Nonnull K key, @Nonnull java.util.List<B> builders)
Put messages into the map represented by their builders. Further modifications to the builders will not be reflected onto the contents of the store.- Type Parameters:
B
- The builder type.- Parameters:
key
- The key to put builders to.builders
- The list of builders to put.
-
putAllBuilders
default <B extends net.morimekta.providence.PMessageBuilder<M>> void putAllBuilders(@Nonnull java.util.Map<K,java.util.List<B>> builders)
Put messages into the map represented by their builders. Further modifications to the builders will not be reflected onto the contents of the store.- Type Parameters:
B
- The builder type.- Parameters:
builders
- Map of key to list of builders.
-
-