microsoft-azure-storage/src/com/microsoft/azure/storage/core/UriQueryBuilder.java
private void insertKeyValue(String key, String value) throws StorageException {
        if (value != null) {
            value = Utility.safeEncode(value);
        }
        if (!key.startsWith("$")) {
            key = Utility.safeEncode(key);
        }

        ArrayList<String> list = this.parameters.get(key);
        if (list == null) {
            list = new ArrayList<String>();
            list.add(value);
            this.parameters.put(key, list);
        }
        else {
            if (!list.contains(value)) {
                list.add(value);
            }
        }
    }
private void insertKeyValue(String key, String value) throws StorageException {
        if (value != null) {
            value = Utility.safeEncode(value);
        }
        if (!key.startsWith("$")) {
            key = Utility.safeEncode(key);
        }

        ArrayList<String> list = this.parameters.get(key);
        if (list == null) {
            list = new ArrayList<String>();
            list.add(value);
            this.parameters.put(key, list);
        }
        else {
            if (!list.contains(value)) {
                list.add(value);
            }
        }
    }
private void insertKeyValue ( String key , String value ) throws StorageException { if ( value != null ) { value = Utility . safeEncode ( value ) ; } if ( ! key . startsWith ( "$" ) ) { key = Utility . safeEncode ( key ) ; } ArrayList < String > list = this . parameters . get ( key ) ; if ( list == null ) { list = new ArrayList < String > ( ) ; list . add ( value ) ; this . parameters . put ( key , list ) ; } else { if ( ! list . contains ( value ) ) { list . add ( value ) ; } } }
Inserts a key / value in the Hashmap, assumes the value is already utf-8 encoded.

@param key
the key to insert
@param value
the value to insert
@throws StorageException
Inserts a key / value in the Hashmap assumes the value is already utf - 8 encoded .