public ParameterElementFilter() { this.values = new MultiCollection(); }
/** * Return a fresh multi collection. */ public static MultiCollection createMultiCollection() { MultiCollection ret = new MultiCollection(); if(DEBUG) addCollection(ret); return ret; }
/** * Add an injection field. * @param name The name. * @param field The field. */ public void addServiceInjection(String name, FieldInfo field) { if(serviceinjections==null) serviceinjections = new MultiCollection(); serviceinjections.put(name, field); }
/** * Create a BDI listener. */ public RemoteChangeListenerHandler(String id, IInternalAccess instance, IRemoteChangeListener rcl) { this.id = id; this.instance = instance; this.rcl = rcl; this.added = new MultiCollection(new HashMap(), LinkedHashSet.class); this.removed = new MultiCollection(new HashMap(), LinkedHashSet.class); this.changed = new MultiCollection(new HashMap(), LinkedHashSet.class); this.occurred = new MultiCollection(); }
/** * Create a BDI listener. */ public RemoteChangeListenerHandler(String id, IInternalAccess instance, IRemoteChangeListener rcl) { this.id = id; this.instance = instance; this.rcl = rcl; this.added = new MultiCollection<String, Object>(new HashMap(), LinkedHashSet.class); this.removed = new MultiCollection<String, Object>(new HashMap(), LinkedHashSet.class); this.changed = new MultiCollection<String, Object>(new HashMap(), LinkedHashSet.class); this.occurred = new MultiCollection<String, Object>(); }
/** * @param parser */ public AReadContext(TypeInfoPathManager pathmanager, IObjectReaderHandler handler, T parser, XMLReporter reporter, Object callcontext, ClassLoader classloader) { this(pathmanager, handler, parser, reporter, callcontext, classloader, null, new ArrayList(), null, null, new HashMap(), 0, new MultiCollection()); }
/** * @param parser */ public ReadContextDesktop(TypeInfoPathManager pathmanager, IObjectReaderHandler handler, XMLStreamReader parser, XMLReporter reporter, Object callcontext, ClassLoader classloader) { super(pathmanager, handler, parser, reporter, callcontext, classloader, null, new ArrayList(), null, null, new HashMap(), 0, new MultiCollection()); }
/** * Create a new write context. */ public WriteContextDesktop(IObjectWriterHandler handler, XMLStreamWriter writer, Object usercontext, Object rootobject, ClassLoader classloader) { this(handler, writer, usercontext, rootobject, classloader, new IdentityHashMap(), new ArrayList(), new MultiCollection()); }
/** * Create a new write context. */ public AWriteContext(IObjectWriterHandler handler, T writer, Object usercontext, Object rootobject, ClassLoader classloader) { this(handler, writer, usercontext, rootobject, classloader, new IdentityHashMap(), new ArrayList(), new MultiCollection()); }
/** * Add a child. */ public void addChild(Object key, Object value) { if(children==null) children = new MultiCollection(); children.put(key, value); }
/** * Add an injection field. * @param name The name. * @param field The field. */ public void addArgumentInjection(String name, FieldInfo field, String convert) { if(argumentinjections==null) argumentinjections = new MultiCollection(); argumentinjections.put(name, new Tuple2<FieldInfo, String>(field, convert!=null && convert.length()==0? null: convert)); }
/** * Add a property. * @param key The key. * @param value The value. */ public void addProperty(String key, Object value) { // System.out.println("addP: "+key+" "+value); if(properties==null) properties = new MultiCollection<String, Object>(); properties.add(key, value); }
/** * The constructor initialises the class-variables */ public GameStatistics() { playerModels = new MultiCollection(); showDealer = true; minimum = 0; maximum = 0; maxRound = 0; this.pcs = new SimplePropertyChangeSupport(this); }
/** * Create an environment. */ public Environment(int size) { this.size = size; this.name_objects = Collections.synchronizedMap(new HashMap()); this.pos_objects = new MultiCollection(); this.randgen = new Random(); //this.pcs = new ConcurrentPropertyChangeSupport(this); this.pcs = new SimplePropertyChangeSupport(this); }
/** * Add an injection field. * @param name The name. * @param field The field. */ public void addArgumentInjection(String name, FieldInfo field, String convert) { if(argumentinjections==null) argumentinjections = new MultiCollection<String, Tuple2<FieldInfo, String>>(); argumentinjections.add(name, new Tuple2<FieldInfo, String>(field, convert!=null && convert.length()==0? null: convert)); }
/** * Add an injection field. * @param name The name. * @param field The field. */ public void addServiceInjection(String name, FieldInfo field, boolean lazy) { if(serviceinjections==null) serviceinjections = new MultiCollection<String, ServiceInjectionInfo>(); serviceinjections.add(name, new ServiceInjectionInfo(field, lazy)); }
/** * Add an injection field. * @param name The name. * @param method The method. */ public void addServiceInjection(String name, MethodInfo method, boolean query) { if(serviceinjections==null) serviceinjections = new MultiCollection<String, ServiceInjectionInfo>(); serviceinjections.add(name, new ServiceInjectionInfo(method, query)); }
/** * Add an entry to the report. * @param stack The path to the element to which the entry applies. * @param message The problem description. */ public void addEntry(Tuple stack, String message) { if(entries==null) // Use index map to keep insertion order for elements. this.entries = new MultiCollection(new IndexMap().getAsMap(), LinkedHashSet.class); if(!entries.getCollection(stack).contains(message)) entries.put(stack, message); }
/** * Creates a new {@link ContinuousSpace2D} with a special ID. * @param name the name of this space * @param areasize the size of the 2D area * @param actionexecutor executor for component actions */ public Grid2D(Object name, IVector2 areasize) { super(areasize==null? null: new Vector2Int(areasize.getXAsInteger(), areasize.getYAsInteger())); this.setProperty("name", name); this.objectsygridpos = new MultiCollection(); }
/** * Creates a new {@link ContinuousSpace2D} with a special ID. * @param name the name of this space * @param areasize the size of the 2D area * @param actionexecutor executor for component actions */ public Grid3D(Object name, IVector3 areasize) { super(areasize==null? null: new Vector3Int(areasize.getXAsInteger(), areasize.getYAsInteger(), areasize.getZAsInteger())); this.setProperty("name", name); this.objectsygridpos = new MultiCollection(); }