Java Map Add addToMap(String key, Map map, String value)

Here you can find the source of addToMap(String key, Map map, String value)

Description

add To Map

License

Open Source License

Declaration

public static void addToMap(String key, Map<String, Object> map, String value) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.Map;

public class Main {
    public static void addToMap(String key, Map<String, Object> map, String value) {
        map.put(key, value);//from  w  w  w  . ja  va 2 s.  c o  m
    }

    public static void addToMap(String key, Map<String, Object> map, int value) {
        map.put(key, Integer.toString(value));
    }

    public static void addToMap(String key, Map<String, Object> map, boolean value) {
        map.put(key, Boolean.toString(value));
    }
}

Related

  1. addToMap(Map> cfs, String[] qualSplits, String[] splitQual)
  2. addToMap(Map dest, Map src)
  3. addToMap(Map aMap, T aKey, Float aValue)
  4. addToMap(Map map, T item)
  5. addToMap(String aDimensionCriteria, Map aDrilldownDimensions)
  6. addToMapIfNotNull(Map map, K key, V value)
  7. addToMapIfNotNull(Map map, String key, Object value)
  8. addToMapListUnique(Map> mapList, T key, List values)
  9. addToMapMap(Map> map, K1 key1, K2 key2, V value)