24 package org.lightjason.agentspeak.action.builtin.collection.tuple;
33 import javax.annotation.Nonnegative;
34 import javax.annotation.Nonnull;
35 import java.util.AbstractMap;
36 import java.util.List;
37 import java.util.stream.Collectors;
64 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return
67 final List<ITerm> l_arguments =
CCommon.
flatten( p_argument ).collect( Collectors.toList() );
71 .map(
ITerm::<AbstractMap.Entry<Object, Object>>raw )
72 .forEach( i -> i.setValue( l_arguments.get( 0 ).raw() ) );
base class of build-in actions for setting name by package/classname (without prefix character) ...
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
common structure for execution definition
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
int minimalArgumentNumber()
minimum number of arguments
result for an immutable fuzzy value
sets a value within a tuple.
static final long serialVersionUID
serial id
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