Code examples for Pair

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.
68:	assertThat(lastEnabled).isEqualTo(new Pair<Integer, Boolean>(777, false)); 
Full Snippet Info
7
CodeRank
63:	assertThat(lastEnabled).isEqualTo(new Pair<Integer, Boolean>(666, true)); 
Full Snippet Info
7
CodeRank
80:	return new Pair<Exception, Result>(ex, res); 
Full Snippet Info
6
CodeRank
77:	Fix lqLocation = new Fix(location, new Pair<String, String>("battery", "" + batteryLevel)); 
Full Snippet Info
6
CodeRank
292:	headers.add(new Pair<String, String>(headerKey, headerValue)); 
Full Snippet Info
6
CodeRank
203:	return new Pair<String, String>(cookies[0], cookies[1]); 
Full Snippet Info
5
CodeRank
16:	urls.add(new Pair<>(url, 0)); 
Full Snippet Info
5
CodeRank
104:	downloader.execute(new Pair<String, Map<String, String>>(m_sApiMethod, m_mParams)); 
Full Snippet Info
5
CodeRank
36:	model.add(new Pair<Integer, Object>(id, value)); 
Full Snippet Info
5
CodeRank
372:	Pair<String, String> pp = new Pair(f, s); 
373:	ret.add(pp); 
Full Snippet Info
5
CodeRank
70:	downloader.execute(new Pair<String, Map<String, String>>(m_sApiMethod, m_mParams)); 
Full Snippet Info
5
CodeRank
20:	fragments.add(new Pair<T, String>(f, title)); 
Full Snippet Info
5
CodeRank
112:	entryList.add(new Pair<String,String>(key, value)); 
Full Snippet Info
4
CodeRank
23:	return new Pair<Double, Double>(mx, my); 
Full Snippet Info
5
CodeRank
219:	mItemsToCheck.add(new Pair<Integer, Long>(position, id)); 
Full Snippet Info
4
CodeRank
93:	return new Pair<JSONObject, byte[]>(json, raw); 
Full Snippet Info
5
CodeRank
23:	Pair<BroadcastReceiver, Intent> p = new Pair<BroadcastReceiver, Intent>(from, intent); 
Full Snippet Info
4
CodeRank
47:	put("Gust Wind Speed", new Pair<Double, Double>(0.0, 300.0)); 
Full Snippet Info
4
CodeRank
231:	mItemsToCheck.add(new Pair<Integer, Long>(position, id)); 
Full Snippet Info
4
CodeRank
41:	alias.add(new Pair<String, String>("text", messagingApp)); 
Full Snippet Info
4
CodeRank