LightJason - AgentSpeak(L++)
|
default structure of a storage More...
Public Member Functions | |
IAgent<?> | update ( @Nonnull final IAgent<?> p_agent) |
updates all items More... | |
Public Member Functions inherited from org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M > | |
void | clear () |
clears all elements More... | |
boolean | containsMultiElement ( @Nonnull final String p_key) |
contains a multi-element More... | |
boolean | containsSingleElement ( @Nonnull final String p_key) |
contains a single-element More... | |
boolean | empty () |
checks if a storage is empty More... | |
Collection< N > | getMultiElement ( @Nonnull final String p_key) |
returns a collection of multi-elementy by name More... | |
M | getSingleElement ( @Nonnull final String p_key) |
returns a single-element by the name More... | |
M | getSingleElementOrDefault ( @Nonnull final String p_key, final M p_default) |
returns a single-element by the name More... | |
boolean | putMultiElement ( @Nonnull final String p_key, final N p_value) |
puts a multi-element into the storage More... | |
boolean | putSingleElement ( @Nonnull final String p_key, final M p_value) |
puts a single-element into the storage More... | |
boolean | putSingleElementIfAbsent ( @Nonnull final String p_key, final M p_value) |
puts a single-element if it is absent More... | |
boolean | removeMultiElement ( @Nonnull final String p_key, final N p_value) |
removes a multi-element from the storage More... | |
boolean | removeSingleElement ( @Nonnull final String p_key) |
removes a single-element from the storage More... | |
int | size () |
number of multi elements More... | |
Stream< N > | streamMultiElements () |
returns a stream over all multi-elements More... | |
Stream< M > | streamSingleElements () |
returns a stream over all single-elements More... | |
Definition at line 34 of file IBaseStorage.java.
IAgent<?> org.lightjason.agentspeak.beliefbase.storage.IBaseStorage< N, M >.update | ( | @Nonnull final IAgent<?> | p_agent | ) |
p_agent | agent which calls the update |
Implements org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.
Definition at line 39 of file IBaseStorage.java.