result = new HashSet<String>(); String values[] = getMultiAttr(name); if (values != null && values.length != 0) { for (int i=0; i < values.length; i++) { result.add(values[i]); } mMultiAttrSetCache.put(name, result); }
result =  new HashSet<String>(Arrays.asList(getMultiAttr(name))); mMultiAttrSetCache.put(name, result);
    public synchronized Set<String> getMultiAttrSet(String name) {        if (mMultiAttrSetCache == null)                    mMultiAttrSetCache = new HashMap<String, Set<String>>();                Set<String> result = mMultiAttrSetCache.get(name);        if (result == null) {            result = new HashSet<String>();                        String values[] = getMultiAttr(name);            if (values != null && values.length != 0) {                for (int i=0; i < values.length; i++) {                    result.add(values[i]);                }                mMultiAttrSetCache.put(name, result);            }        }        return result;            }