Java Map Put putKV(Map map, String k, Object v)

Here you can find the source of putKV(Map map, String k, Object v)

Description

put KV

License

Apache License

Declaration

public static void putKV(Map map, String k, Object v) 

Method Source Code

//package com.java2s;
/*/* www  . ja  va2 s .  c o m*/
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import java.util.Map;

public class Main {
    public static void putKV(Map map, String k, Object v) {
        map.put(k, v);
    }
}

Related

  1. putIfNull(Map map, Object key, Object defaultValue)
  2. putIfSet(Map config, String key, Object... values)
  3. putIntoMap(Map m, T[] keys, S[] values)
  4. putIntoMap(String key, Object value)
  5. putItem(Map map, Object key, Object value)
  6. putLong(Map properties, String key, long value)
  7. putLowerNotNull(Map m, String k, V v)
  8. putMap(Map map, Object... args)
  9. putMap(Map target, Map map)