Code examples for Dictionary

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
74:	String sourceid = source.get(TRANSIENT_PROPERTY_SERIAL_ID); 
-
77:	source.put(TRANSIENT_PROPERTY_SERIAL_ID, sourceid); 
-
82:	LOGGER.debugf("Config rollback: %s => %s", pid, source); 
-
84:	configurations.put(pid, source); 
-
92:	LOGGER.debugf("Config put: %s => %s", pid, source); 
93:	configurations.put(pid, new UnmodifiableDictionary<String, String>(source)); 
-
96:	LOGGER.debugf("Config skip put: %s => %s", pid, source); 
-
104:	LOGGER.debugf("Config put: %s => %s", pid, source); 
105:	configurations.put(pid, new UnmodifiableDictionary<String, String>(source)); 
-
108:	LOGGER.debugf("Config skip put: %s => %s", pid, source); 
Full Snippet Info
9
CodeRank
121:	path = (String) properties.get("path"); 
122:	rootUri = (String) properties.get("rootUri"); 
-
124:	String indexName = (String) properties.get("indexName"); 
-
129:	Boolean deeplyAccessible = (Boolean) properties.get("deeplyAccessible"); 
-
134:	Boolean modifiable = (Boolean) properties.get("modifiable"); 
-
140:	.get("negotiatingContent"); 
Full Snippet Info
7
CodeRank
47:	props.put("instance.name", configuration.get("instance.name")); 
48:	if(configuration.get("csh.simple") != null) { props.put("Simple", configuration.get("csh.simple")); } 
49:	if(configuration.get("csh.map") != null) { 
50:	Dictionary m = (Dictionary) configuration.get("csh.map"); 
51:	if (m.size() > 0) { 
52:	props.put("Map1", m.get("a")); 
53:	props.put("Map2", m.get("b")); 
54:	props.put("Map3", m.get("c")); 
Full Snippet Info
7
CodeRank
84:	return delegate.get(key); 
Full Snippet Info
7
CodeRank
48:	props.put("instance.name", configuration.get("instance.name")); 
49:	if(configuration.get("csh.simple") != null) { props.put("Simple", configuration.get("csh.simple")); } 
50:	if(configuration.get("csh.map") != null) { 
51:	Dictionary m = (Dictionary) configuration.get("csh.map"); 
52:	if (m.size() > 0) { 
53:	props.put("Map1", m.get("a")); 
54:	props.put("Map2", m.get("b")); 
55:	props.put("Map3", m.get("c")); 
Full Snippet Info
7
CodeRank
49:	String param = (String)properties.get(CFG_CONNECTION_URL); 
-
61:	param = (String)properties.get(CFG_DRIVER_CLASS); 
-
71:	if(properties.get(CFG_USERNAME) == null) { 
-
74:	dbUserName = (String)properties.get(CFG_USERNAME); 
-
76:	if(properties.get(CFG_PASSWORD) == null) { 
-
79:	dbPassword = (String)properties.get(CFG_PASSWORD); 
Full Snippet Info
6
CodeRank
163:	super.updated(config); 
-
167:	String timeOutString = (String) config.get("timeout"); 
-
174:	String blockingString = (String) config.get("blocking"); 
-
181:	String preambleString = (String) config.get("preamble"); 
-
193:	String postambleString = (String) config.get("postamble"); 
-
205:	String updatewithresponseString = (String) config.get("updatewithresponse"); 
-
212:	String charsetString = (String) config.get("charset"); 
Full Snippet Info
6
CodeRank
127:	consumerKey = PropertiesUtil.toString(properties.get(CONSUMER_KEY_PARAMETER), "").trim(); 
128:	consumerSecret = PropertiesUtil.toString(properties.get(CONSUMER_SECRET_PARAMETER), "").trim(); 
129:	callbackUrl = PropertiesUtil.toString(properties.get(CALLBACK_URL_PARAMETER), "").trim(); 
130:	usersMeUrl = PropertiesUtil.toString(properties.get(USERS_ME_URL_PARAMETER), DEFAULT_USERS_ME_URL).trim(); 
Full Snippet Info
6
CodeRank
82:	configLocations, ConfigUtils.getHeaderLocations(headers)); 
-
84:	if (headers.get("Liferay-Service") != null) { 
Full Snippet Info
6
CodeRank
301:	if(properties.get("provider") != null) { 
302:	providerName = (String) properties.get("provider"); 
-
304:	if(properties.get("defaultHeight") != null) { 
305:	defaultHeight = Integer.parseInt((String)properties.get("defaultHeight")); 
-
307:	if(properties.get("defaultWidth") != null) { 
308:	defaultWidth = Integer.parseInt((String)properties.get("defaultWidth")); 
-
310:	if(properties.get("scale") != null) { 
311:	scale = Double.parseDouble((String)properties.get("scale")); 
Full Snippet Info
6
CodeRank
63:	host = (String) properties.get(CONFIG_KEY_HOMEMATIC_HOST); 
-
69:	callbackHost = (String) properties.get(CONFIG_KEY_CALLBACK_HOST); 
-
85:	String value = (String) properties.get(key); 
Full Snippet Info
6
CodeRank
164:	super.updated(config); 
-
168:	String timeOutString = (String) config.get("buffersize"); 
-
175:	String blockingString = (String) config.get("retryinterval"); 
-
182:	String preambleString = (String) config.get("preamble"); 
-
194:	String postambleString = (String) config.get("postamble"); 
-
206:	String updatewithresponseString = (String) config.get("updatewithresponse"); 
-
213:	String charsetString = (String) config.get("charset"); 
Full Snippet Info
6
CodeRank
53:	assertEquals("bar", headers.get("foo")); 
54:	assertEquals("beta", headers.get("alfa")); 
55:	assertEquals("42", headers.get("life")); 
-
57:	assertEquals("text/plain", headers.get("Content-Type")); 
58:	assertEquals("42", headers.get("life")); 
Full Snippet Info
6
CodeRank
190:	String redirectUrl = (String) properties.get("redirectUrl"); 
-
195:	String consumerKey = (String) properties.get("consumerKey"); 
-
200:	String consumerSecret = (String) properties.get("consumerSecret"); 
-
205:	String contentDir = (String) properties.get("contentDir"); 
Full Snippet Info
6
CodeRank
45:	props.put("instance.name", configuration.get("instance.name")); 
46:	if(configuration.get("csh.simple") != null) { props.put("Simple", configuration.get("csh.simple")); } 
47:	if(configuration.get("csh.map") != null) { 
48:	Dictionary m = (Dictionary) configuration.get("csh.map"); 
49:	if (m.size() > 0) { 
50:	props.put("Map1", m.get("a")); 
51:	props.put("Map2", m.get("b")); 
52:	props.put("Map3", m.get("c")); 
Full Snippet Info
6
CodeRank
49:	String backupIntervalString = (String) config.get("backupinterval"); 
-
54:	String commitIntervalString = (String) config.get("commitinterval"); 
-
64:	String maxBackupsString = (String) config.get("maxbackups"); 
Full Snippet Info
6
CodeRank
89:	Long newValue = (Long) args.get(NEW_TIME_VALUE); 
-
93:	args.remove(NEW_TIME_VALUE); 
94:	args.put(NEW_RESULT_VALUE,((TimeStateVariable) time).getCurrentTime()); 
Full Snippet Info
6
CodeRank
58:	assertEquals(2, dict.size()); 
59:	assertEquals("a", dict.get("a")); 
60:	assertEquals(2, dict.get("b")); 
Full Snippet Info
6
CodeRank
56:	String cfgLatitude = (String) properties.get(AstroConfig.CONFIG_KEY_LATITUDE); 
57:	String cfgLongitude = (String) properties.get(AstroConfig.CONFIG_KEY_LONGITUDE); 
-
82:	String value = (String) properties.get(key); 
Full Snippet Info
6
CodeRank
15:	String driverClassName = (String) properties.get("jdbc.driverClassName"); 
16:	String url = (String) properties.get("jdbc.url"); 
17:	String username = (String) properties.get("jdbc.username"); 
18:	String password = (String) properties.get("jdbc.password"); 
Full Snippet Info
6
CodeRank