package de.danielbasedow.prospecter.core.query;

import java.util.BitSet;
import java.util.HashMap;

public class QueryManager {
    protected HashMap<Integer, BitSet> masks;

    public QueryManager() {
        this.masks = new HashMap<Integer, BitSet>();
    }

    public void addQuery(Query query) {
        masks.put(query.getQueryId(), query.getMask());
    }

    public BitSet getMask(Integer queryId) {
        return masks.get(queryId);
    }

    public void deleteQuery(Integer queryId) {
        masks.remove(queryId);
    }
}

@@ -53,25 +53,46 @@
 ort 
-java.util.BitSet;
+gnu.trove.map.hash.TIntObjectHashMap;%0A
 %0Aimp
@@ -105,23 +105,22 @@
 va.util.
-HashMap
+BitSet
 ;%0A%0Apubli
@@ -156,33 +156,34 @@
 otected 
-HashMap%3CInteger, 
+TIntObjectHashMap%3C
 BitSet%3E 
@@ -247,25 +247,26 @@
 new 
-HashMap%3CInteger, 
+TIntObjectHashMap%3C
 BitS

use trove map in query manager