24 package org.lightjason.agentspeak.action.builtin.collection.list;
33 import javax.annotation.Nonnegative;
34 import javax.annotation.Nonnull;
35 import java.util.Collection;
36 import java.util.Collections;
37 import java.util.LinkedList;
38 import java.util.List;
76 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
78 if ( ( p_argument.get( 0 ).<List<?>>raw().isEmpty() ) && ( p_argument.get( 1 ).<List<?>>raw().isEmpty() ) )
82 final Collection<Object> l_result =
new LinkedList<>( p_argument.get( 0 ).<Collection<Object>>raw() );
83 l_result.removeAll( p_argument.get( 1 ).<Collection<Object>>raw() );
84 p_return.add(
CRawTerm.
from( p_parallel ? Collections.synchronizedCollection( l_result ) : l_result ) );
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
creates the complement between lists.
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
execution context with local data
final int minimalArgumentNumber()
minimum number of arguments
result for an immutable fuzzy value
static final long serialVersionUID
serial id
static< N > CRawTerm< N > from(final N p_value)
factory for a raw term
term structure for simple datatypes