Hashlet<String,Integer> filter(Hashlet<String,Integer> input) {
        Hashlet<String,Integer> result = new Hashlet<>();
        result.reserve(input.size());
        for (int i = 0; i < input.size(); i++) {
            String k = input.key(i);
            if (! removeList.contains(k)) {
                Integer v = input.value(i);
                result.put(k, v);
            }
        }
        return result;
    }
Helper class to remove (filter) some names from a Hashlet
 @author arnej
vespajlib/src/main/java/com/yahoo/data/access/helpers/MatchFeatureFilter.java