Java Map Put put(Map map, Object key, int value)

Here you can find the source of put(Map map, Object key, int value)

Description

put

License

Open Source License

Declaration

public static void put(Map map, Object key, int value) 

Method Source Code


//package com.java2s;
/*//w  ww.j  a  v  a  2s  .co m
 * This file is part of the Jose Project
 * see http://jose-chess.sourceforge.net/
 * (c) 2002-2006 Peter Sch?fer
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 */

import java.util.Map;

public class Main {
    public static void put(Map map, Object key, int value) {
        map.put(key, new Integer(value));
    }

    public static void put(Map map, Object key, double value) {
        map.put(key, new Double(value));
    }

    public static void put(Map map, Object key, float value) {
        map.put(key, new Float(value));
    }
}

Related

  1. put(Map map, String k1, Object v1, String k2, Object v2)
  2. put(Map map, String keyValuePair)
  3. put(Map aMap, K aKey, V aValue)
  4. put(Map map, K key, V value)