24 package org.lightjason.agentspeak.action.builtin.storage;
31 import javax.annotation.Nonnull;
32 import javax.annotation.Nullable;
33 import java.util.List;
34 import java.util.function.Function;
35 import java.util.stream.Stream;
66 public CClear( @Nonnull
final Function<String, Boolean> p_resolver )
76 public CClear( @Nullable
final String... p_forbidden )
86 public CClear( @Nonnull
final Stream<String> p_fordbidden )
88 super( p_fordbidden );
94 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return
97 p_context.agent().storage().keySet().parallelStream()
99 .forEach( i -> p_context.agent().storage().remove( i ) );
final IFuzzyValue< Boolean > execute(final boolean p_parallel, @Nonnull final IContext p_context, @Nonnull final List< ITerm > p_argument, @Nonnull final List< ITerm > p_return)
defines a plan-body operation
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
removes all elements of the storage.
final Function< String, Boolean > m_resolver
set with forbidden keys
CClear( @Nonnull final Stream< String > p_fordbidden)
ctor
execution context with local data
static final long serialVersionUID
serial id
CClear( @Nullable final String... p_forbidden)
ctor
CClear( @Nonnull final Function< String, Boolean > p_resolver)
ctor
result for an immutable fuzzy value
storage default definitions