Puts the specified value with the specified key to this Map type item.

@param name the value name; may be null
@param tokens an array of tokens
183259
public void putValue(String name, Token[] tokens) {
        if (type == null) {
            type = ItemType.MAP;
        }
        if (!isMappableType()) {
            throw new IllegalArgumentException("The type of this item must be 'map' or 'properties'");
        }
        if (tokensMap == null) {
            tokensMap = new LinkedHashMap<>();
        }
        tokensMap.put(name, tokens);
    }
512864
public void setTokenValue(String tokenName, Cookie value) {
		if (value == null) {
			tokenValues.remove(tokenName);
		} else {
			tokenValues.put(tokenName, value);
		}
	}
1128678
public void put(final String keys, final P value) {
        if (keys.matches(".*" + SIMPLE_CHARACTER_CLASS + ".*")) {
            int charClassStart = keys.indexOf('[', 0);
            final int charClassEnd = keys.indexOf(']', 1);
            String begin = keys.substring(0, charClassStart);
            for (; charClassStart < charClassEnd - 1; charClassStart++) {
                char middle = keys.charAt(charClassStart + 1);
                String end = keys.substring(charClassEnd + 1, keys.length());
                put(begin + middle + end, value);
            }
        } else
            trie.put(keys, value);
    }
660750
private void put(Object obj, XmlParser.Node node) throws NoSuchMethodException,
            ClassNotFoundException, InvocationTargetException, IllegalAccessException
    {
        if (!(obj instanceof Map))
                throw new IllegalArgumentException("Object for put is not a Map: " + obj);
        Map map = (Map) obj;

        String name = node.getAttribute("name");
        Object value = value(obj, node);
        map.put(name, value);
        if (log.isDebugEnabled()) log.debug(obj + ".put(" + name + "+" + value + ")");
    }
45042
public void setValuesForIn(String values, String name, Map<String, Object> map) {
        getMapHelper().setValuesForIn(values, name, map);
    }
854905
public void add(String name, Map<?, ?> value) {
		if (value != null) {
			this.content.put(name, value);
		}
	}
419646
public void add(String name, Iterable<?> value) {
		if (value != null) {
			this.content.put(name, value);
		}
	}
427179
public void setValueForIn(Object value, String name, Map<String, Object> map) {
        getMapHelper().setValueForIn(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()));
        	}
    }
1062867
public V put(K key, V value) {

        if ((key != null) && (value != null)) {
            return m_internalMap.put(key, value);
        }
        Exception e = new Exception();
        try {
            // we want to print a stack trace when null is used as a key/value
            throw e;
        } catch (Exception e2) {
            e = e2;
        }
        if (key == null) {
            LOG.warn("Invalid null key in map", e);
            return null;
        }
        if (value == null) {
            LOG.warn("Invalid null value in map", e);
            return m_internalMap.remove(key);
        }
        return null;
    }
313310
public void put(String name, String value) {
    List<String> list = new ArrayList<>();
    list.add(value);
    getMap().put(name, list);
  }
516756
public static void put(String key, Object value) {
		contextMap.get().put(key, value);
	}
1183076
public void put(K[] key, V value) {
        Node child = root.get(key[0]);
        if (child == null) {
            child = new Node(key[0]);
            root.put(key[0], child);
        }
        child.addChild(key, value, 1);
    }
1229692
public void put(String key, byte[] value) {
		if (this.compiledStatement != null) {
			if (value == null) {
				this.compiledStatement.bindNull(compiledStatementBindIndex++);
			} else {
				compiledStatement.bindBlob(compiledStatementBindIndex++, value);
			}
		} else if (values != null) {
			values.put(key, value);
			return;
		}

		names.add(key);
		// values.put(key, value);
		args.add(value);
		valueType.add(ParamType.BYTE_ARRAY);
	}
1043240
public void put(String key, String value) {
		if (this.compiledStatement != null) {
			if (value==null) {
				this.compiledStatement.bindNull(compiledStatementBindIndex++);				
			} else {				
				compiledStatement.bindString(compiledStatementBindIndex++, (String) value);
			}
		} else if (values != null) {
			values.put(key, value);
			return;
		}

		names.add(key);
		// values.put(key, value);
		args.add(value);
		valueType.add(ParamType.STRING);
	}
443770
public void setIfUnset(String name, String value) {
        if (get(name) == null) {
            set(name, value);
        }
    }
423388
public void put(String name, Object value) {
        if (value instanceof EsRequest) {
            document.setDocument(name, ((EsRequest)value).document);
        } else {
            document.set(name, value);
        }
    }