24 package org.lightjason.agentspeak.action.builtin.collection.set;
33 import javax.annotation.Nonnegative;
34 import javax.annotation.Nonnull;
35 import java.util.List;
71 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return
74 final Set<Object> l_set = p_argument.get( 0 ).<Set<Object>>raw();
78 .forEach( l_set::add );
final int minimalArgumentNumber()
minimum number of arguments
base class of build-in actions for setting name by package/classname (without prefix character) ...
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
common structure for execution definition
static final long serialVersionUID
serial id
execution context with local data
static Stream< ITerm > flatten( @Nonnull final Collection<? extends ITerm > p_terms)
flat term-in-term collection into a straight term list
result for an immutable fuzzy value
adds an element to the set.
< T > T raw()
cast to any raw value type