Here you can find the source of putPreferenceStoredMapValue(String keyOfPreference, String keyInMap, Object value)
Parameter | Description |
---|---|
keyOfPreference | key of PreferenceStore Map |
keyInMap | key in the Map |
value | the value to be set |
public static void putPreferenceStoredMapValue(String keyOfPreference, String keyInMap, Object value)
//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) { } }