LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.beliefbase.storage.IBaseStorage< N, M > Class Template Referenceabstract

default structure of a storage More...

+ Inheritance diagram for org.lightjason.agentspeak.beliefbase.storage.IBaseStorage< N, M >:
+ Collaboration diagram for org.lightjason.agentspeak.beliefbase.storage.IBaseStorage< N, M >:

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...
 
getSingleElement ( @Nonnull final String p_key)
 returns a single-element by the name More...
 
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...
 

Detailed Description

Definition at line 34 of file IBaseStorage.java.

Member Function Documentation

◆ update()

IAgent<?> org.lightjason.agentspeak.beliefbase.storage.IBaseStorage< N, M >.update ( @Nonnull final IAgent<?>  p_agent)
Parameters
p_agentagent which calls the update
Returns
agent

Implements org.lightjason.agentspeak.beliefbase.storage.IStorage< N, M >.

Definition at line 39 of file IBaseStorage.java.