List of utility methods to do Map Put
void | put(Map map, Object key, int value) put map.put(key, new Integer(value));
|
void | put(Map map, String k1, Object v1, String k2, Object v2) put map.put(k1, v1); map.put(k2, v2); |
void | put(Map map, String keyValuePair) Adds an entry to a Map .
int posOfSep = keyValuePair.indexOf('='); if (posOfSep == -1) throw new IllegalArgumentException("Invalid keu-value specification: " + keyValuePair); String key = keyValuePair.substring(0, posOfSep); String value = keyValuePair.substring(posOfSep + 1); map.put(key, value); |
V | put(Map Adds given key and value to given map (removes key if value is null). if (aValue == null) return aMap.remove(aKey); return aMap.put(aKey, aValue); |
Map | put(Map put V valueOld = map.get(key); if (valueOld == null) { map.put(key, value); return map; |
void | put(Map Associates the specified value with the specified key in this map. if (map != null) {
map.put(key, value);
|
void | put(Map put Map<String, Object> m = resolve(map, key); String k = resolveKey(key); m.put(k, value); |
void | put(Map Puts an object into a map if (name != null && object != null) {
structure.put(name, object);
|
void | put(ThreadLocal put Map<Object, String> map = threadLocal.get(); if (map == null) { map = new HashMap<>(); if (!map.containsKey(key)) { map.put(key, value); threadLocal.set(map); |
void | put2DayOfWeekMaps(int pDayOfWeek, String pDayName) put Day Of Week Maps dayOfWeek2DayName[pDayOfWeek] = pDayName; dayName2DayOfWeek.put(pDayName, pDayOfWeek); |