24 package org.lightjason.agentspeak.action.builtin.collection.multimap;
26 import com.google.common.collect.Multimap;
31 import javax.annotation.Nonnull;
32 import java.util.ArrayList;
33 import java.util.Collections;
34 import java.util.List;
53 protected final void apply(
final boolean p_parallel, @Nonnull
final Multimap<Object, Object> p_instance,
54 @Nonnull
final Object p_key, @Nonnull
final List<ITerm> p_return )
59 ? Collections.synchronizedList(
new ArrayList<>( p_instance.asMap().get( p_key ) ) )
60 :
new ArrayList<>( p_instance.asMap().get( p_key ) )
static final long serialVersionUID
serial id
returns a single element of all multimap elements.
abstract class to get a single elements of multiple maps
final void apply(final boolean p_parallel, @Nonnull final Multimap< Object, Object > p_instance, @Nonnull final Object p_key, @Nonnull final List< ITerm > p_return)
static< N > CRawTerm< N > from(final N p_value)
factory for a raw term
term structure for simple datatypes