Java Map Put putPreferenceStoredMapValue(String keyOfPreference, String keyInMap, Object value)

Here you can find the source of putPreferenceStoredMapValue(String keyOfPreference, String keyInMap, Object value)

Description

Put value with key keyInMapinto the map whose key is keyOfPreference

License

Open Source License

Parameter

Parameter Description
keyOfPreference key of PreferenceStore Map
keyInMap key in the Map
value the value to be set

Declaration

public static void putPreferenceStoredMapValue(String keyOfPreference, String keyInMap, Object value) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2005 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors://  w  w w.jav a2  s  .  c o  m
 *  Actuate Corporation  - initial API and implementation
 *  Ing. Gerd Stockner (Mayr-Melnhof Karton Gesellschaft m.b.H.) - modifications
 *  Christian Voller (Mayr-Melnhof Karton Gesellschaft m.b.H.) - modifications
 *  CoSMIT GmbH - publishing, maintenance
 *******************************************************************************/

import java.util.HashMap;
import java.util.Map;

public class Main {
    /**
     * Put <tt>value</tt> with key <tt>keyInMap</tt>into the map whose key
     * is <tt>keyOfPreference</tt>
     * 
     * @param keyOfPreference
     *            key of PreferenceStore Map
     * @param keyInMap
     *            key in the Map
     * @param value
     *            the value to be set
     */
    public static void putPreferenceStoredMapValue(String keyOfPreference, String keyInMap, Object value) {
        Map map = getPreferenceStoredMap(keyOfPreference);
        map.put(keyInMap, value);
        setPreferenceStoredMap(keyOfPreference, map);
    }

    /**
     * Get Map from PreferenceStore by key
     * @param mapKey the key of the map
     * @return Map 
     */
    public static Map getPreferenceStoredMap(String mapKey) {

        return new HashMap();
    }

    /**
     * Reset the map in PreferenceStored
     * @param keyOfPreference key in PreferenceStore
     * @param map the map to be set 
     */
    public static void setPreferenceStoredMap(String keyOfPreference, Map map) {

    }
}

Related

  1. putObjectsInMultiMap(Map>> multiMap, Integer key, List stringPair)
  2. putOrCreateList(Map> map, K key, V value)
  3. putOrRemove(Map map, String key, Object obj)
  4. putPairs(Map map, Object... pairs)
  5. putParameter(String key, String value, Map map)
  6. putRowMap(Map map, String value)
  7. putSafelyMap(Map> pathFeaturesMap, K1 featureDescriptor, K2 pathId, E featureValue)
  8. putShort(Map properties, String name, short value)
  9. putToListMap(Map mapOfLists, Object key, Object val)