Code examples for HashMap

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.
215:	streamMap = new HashMap<String, ArrayList<Integer>>(); 
Full Snippet Info
10
CodeRank
14:	public static Map<String, DataParser> parsers = new HashMap<String, DataParser>(); 
Full Snippet Info
10
CodeRank
13:	private Map<String, T> values = new HashMap<String, T>(); 
Full Snippet Info
10
CodeRank
488:	Map<String, Object> stubProperties = new HashMap<String, Object>(); 
-
491:	stubProperties.put(BindingProvider.USERNAME_PROPERTY, username); 
-
495:	stubProperties.put(BindingProvider.PASSWORD_PROPERTY, password); 
-
499:	stubProperties.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpointAddress); 
-
502:	stubProperties.put(BindingProvider.SESSION_MAINTAIN_PROPERTY, Boolean.TRUE); 
-
505:	stubProperties.put(BindingProvider.SOAPACTION_USE_PROPERTY, Boolean.TRUE); 
-
509:	stubProperties.put(BindingProvider.SOAPACTION_URI_PROPERTY, soapActionUri); 
-
511:	stubProperties.putAll(getCustomProperties()); 
512:	if (!stubProperties.isEmpty()) { 
-
517:	((BindingProvider) stub).getRequestContext().putAll(stubProperties); 
Full Snippet Info
9
CodeRank
26:	protected HashMap<String, String> exceptions = new HashMap<String, String>(); 
Full Snippet Info
10
CodeRank
150:	Map model = new HashMap(); 
151:	model.put("someKey", getProductDataResource()); 
152:	model.put("title", "Product List"); 
Full Snippet Info
9
CodeRank
225:	Map<String, Object> mergedProps = new HashMap<String, Object>(); 
-
230:	CollectionUtils.mergePropertiesIntoMap( 
-
233:	mergedProps.putAll(this.jdoPropertyMap); 
-
235:	this.persistenceManagerFactory = newPersistenceManagerFactory(mergedProps); 
Full Snippet Info
8
CodeRank
126:	HashMap<String, Object> config = new HashMap<>(); 
-
128:	config.put("precision", Arrays.asList(1, 2, 3, 4)); 
-
136:	config.put("default", pointAsMap); 
-
139:	GeolocationContextMapping mapping = GeolocationContextMapping.load("foo", config); 
Full Snippet Info
8
CodeRank
56:	m = new HashMap<KeyColumn, S>(); 
Full Snippet Info
10
CodeRank
79:	Map<String, List<String>> o2 = new HashMap<String, List<String>>(); 
80:	o2.put("key1", Collections.singletonList("value1")); 
Full Snippet Info
8
CodeRank
71:	Map<String, VersionStrategy> versionStrategyMap = new HashMap<>(); 
72:	versionStrategyMap.put("/**", new ContentVersionStrategy()); 
-
74:	versionResolver.setStrategyMap(versionStrategyMap); 
Full Snippet Info
8
CodeRank
88:	Map<String, HttpRequestHandler> urlMap = new HashMap<String, HttpRequestHandler>(); 
89:	urlMap.put("/**", handler); 
-
93:	handlerMapping.setUrlMap(urlMap); 
Full Snippet Info
8
CodeRank
57:	Map<String, Object> scopes = new HashMap<String, Object>(); 
58:	scopes.put(FOO_SCOPE, scope); 
-
60:	figurer.setScopes(scopes); 
Full Snippet Info
8
CodeRank
101:	Map<String, Object> map = new HashMap<String, Object>(); 
102:	map.put("person", new TestBean("Fred")); 
103:	map.put("age", 33); 
104:	this.redirectAttributes.addAllAttributes(map); 
Full Snippet Info
8
CodeRank
69:	headers = new HashMap<>(); 
Full Snippet Info
8
CodeRank
38:	Map<String, Object> params = new HashMap<String, Object>(); 
39:	params.put("myKey1", "myValue1"); 
40:	params.put("myKey2_myValue2", "xxx"); 
41:	params.put("myKey3_myValue3.x", "xxx"); 
42:	params.put("myKey4_myValue4.y", new String[] {"yyy"}); 
-
44:	assertNull(WebUtils.findParameterValue(params, "myKey0")); 
45:	assertEquals("myValue1", WebUtils.findParameterValue(params, "myKey1")); 
46:	assertEquals("myValue2", WebUtils.findParameterValue(params, "myKey2")); 
47:	assertEquals("myValue3", WebUtils.findParameterValue(params, "myKey3")); 
48:	assertEquals("myValue4", WebUtils.findParameterValue(params, "myKey4")); 
Full Snippet Info
8
CodeRank
107:	final Map<String, Integer> expected = new HashMap<String, Integer>(); 
108:	expected.put("file", 0644); 
109:	expected.put("folder", 0755); 
Full Snippet Info
8
CodeRank
173:	Map<String, Object> allVars = new HashMap<>(); 
-
175:	allVars.putAll(vars); 
Full Snippet Info
8
CodeRank
38:	private final Map<K, Long> loadingDates = Collections.synchronizedMap(new HashMap<K, Long>()); 
Full Snippet Info
10
CodeRank
31:	Map<String, Bitmap> bitmaps = new HashMap<String, Bitmap>(); 
32:	bitmaps.put(attachmentId, bitmap); 
Full Snippet Info
8
CodeRank