Stores list of values in map.
@param values comma separated list of values.
@param name name to use this list for.
355378
public void setValuesFor(String values, String name) {
        getMapHelper().setValuesForIn(values, name, getCurrentValues());
    }
121889
public static VariableMap putValue(String name, Object value) {
    return createVariables().putValue(name, value);
  }
700431
private static void setMapValue(Map<String, Object> target, String name, Map<String, Object> value) {
		for ( Map.Entry<String, Object> entry : value.entrySet() ) {
			set( target, name + PATH_SEPARATOR + entry.getKey(), entry.getValue() );
		}
	}
587
protected void view(Map<String, Object> values){
        for(String key:values.keySet() ){
            view(key, values.get(key));
        }
    }
119221
public void setStrings(String name, String... values) {
        set(name, StringUtils.join(values, ","));
    }
505204
protected void view(Map values){
        for(Object key:values.keySet() ){
            assign(key.toString(), values.get(key));
        }
    }
175921
public void put(String name, Object[] values) {
        if (values instanceof EsRequest[]) {
            Object[] docs = new Object[values.length];
            for (int i = 0; i < docs.length; i++) {
                docs[i] = ((EsRequest)values[i]).document;
            }
            document.setArray(name, docs);
        } else {
            document.setArray(name, values);
        }
    }
1075599
public void setValueForIn(Object value, String name, Map<String, Object> map) {
        if (isListName(name)) {
            String valueStr = null;
            if (value != null) {
                valueStr = value.toString();
            }
            setValuesForIn(valueStr, stripListIndicator(name), map);
        } else {
            if (name.endsWith("\\[]")) {
                name = name.replace("\\[]", "[]");
            }
            String cleanName = htmlCleaner.cleanupValue(name);
            Object cleanValue = getCleanValue(value);
            if (map.containsKey(cleanName)) {
                // overwrite current value
                map.put(cleanName, cleanValue);
            } else {
                int firstDot = cleanName.indexOf(".");
                if (firstDot > -1) {
                    String key = cleanName.substring(0, firstDot);
                    Object nested = getValueImpl(map, key, false);
                    if (nested == null) {
                        nested = new LinkedHashMap<String, Object>();
                        if (isListIndexExpr(key)) {
                            setIndexedListValue(map, key, nested);
                        } else {
                            map.put(key, nested);
                        }
                    }
                    if (nested instanceof Map) {
                        Map<String, Object> nestedMap = (Map<String, Object>) nested;
                        String lastPart = cleanName.substring(firstDot + 1);
                        setValueForIn(cleanValue, lastPart, nestedMap);
                    } else {
                        throw new SlimFixtureException(false, key + " is not a map, but " + nested.getClass());
                    }
                } else if (isListIndexExpr(name)) {
                    setIndexedListValue(map, cleanName, cleanValue);
                } else {
                    map.put(cleanName, cleanValue);
                }
            }
        }
    }
42171
public void putAllValues(Map<String, V> input) {
        for (Map.Entry<String, V> entry : input.entrySet()) {
            put(entry.getKey(), entry.getValue());
        }
    }
229965
private void addItems(Map<String, String> values) {
        for (String itemName : values.keySet()) {
            setItem(itemName, values.get(itemName));
        }
    }
390958
public void setDoubleValueForIn(double value, String name, Map<String, Object> map) {
        setValueForIn(Double.valueOf(value), name, map);
    }
1180593
public void setValue(String name, String value) {
    	Properties properties = loadProperties();
    	try (
    	    	OutputStream output = new FileOutputStream(file);
        	) {
    	    	properties.setProperty(name, value);
    	    	properties.store(output, "");
    	    	output.close();

        	} catch(IOException e) {
        		logger.warn(String.format("Could not save the keyvalue store, reason:%s", e.getMessage()));
        	}
    }
1076162
public static void addValues(String key, Collection<String> values, MultiValueMap<String, String> params) {
        if (values != null) {
            for (String value : values) {
                params.add(key, value);
            }
        }
    }
367112
public void addValues(Object name, String[] values) 
    {
        Object lo = super.get(name);
        Object ln = LazyList.addCollection(lo,Arrays.asList(values));
        if (lo!=ln)
            super.put(name,ln);
    }
886340
public void setValues(java.util.Collection<String> values) {
        if (values == null) {
            this.values = null;
            return;
        }

        this.values = new java.util.ArrayList<String>(values);
    }
304106
public void setParameter(final String name, final String value) {
		String[] currentValue = (String[]) parameters.get(name);

		if (currentValue == null) {
			currentValue = new String[]{value};
		} else {
			// convert the current values into a new array..
			String[] newValues = new String[currentValue.length + 1];
			System.arraycopy(currentValue, 0, newValues, 0, currentValue.length);
			newValues[newValues.length - 1] = value;
			currentValue = newValues;
		}

		parameters.put(name, currentValue);
	}
891815
@MapMethod
    public List<Object> values(Map<String,Object> m){
        List<Object> l = Objects.newArrayList();
        for(Object k:m.values()){
            l.add(k);
        }
        return l;
    }