Code examples for List

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.
154:	long[] sortedAddresses = sorter.sort(types, inputPages, sortChannels, sortOrders, expectedPositions); 
-
157:	MaterializedResult expected = toMaterializedResult(TEST_SESSION, types, expectedPages); 
158:	MaterializedResult actual = toMaterializedResult(TEST_SESSION, types, outputPages); 
-
164:	PageBuilder pageBuilder = new PageBuilder(types); 
-
171:	for (int i = 0; i < types.size(); i++) { 
172:	Type type = types.get(i); 
Full Snippet Info
10
CodeRank
59:	checkState(parameterValues.size() > node.getPosition(), "Too few parameter values"); 
60:	return coerceIfNecessary(node, parameterValues.get(node.getPosition())); 
Full Snippet Info
10
CodeRank
32:	assertEquals(types.size(), actualPage.getChannelCount()); 
-
35:	assertBlockEquals(types.get(i), actualPage.getBlock(i), expectedPage.getBlock(i)); 
Full Snippet Info
10
CodeRank
32:	 
-
35:	private static final int POSITIONS = 100; 
-
56:	Page outputPage = processor.processColumnar(SESSION, page, types); 
Full Snippet Info
10
CodeRank
79:	if (fieldIndex > structFields.size()) { 
-
87:	structFields.get(fieldIndex).decodeValueInto(depth + 1, builder, slice, offset, length); 
Full Snippet Info
10
CodeRank
43:	if (correlation.size() != applyNode.getCorrelation().size()) { 
-
49:	expressionAliases.put(alias, applyNode.getCorrelation().get(i++).toSymbolReference()); 
Full Snippet Info
10
CodeRank
85:	if (entries.isEmpty()) { 
-
88:	final Entry last = entries.get(entries.size() - 1); 
-
93:	entries.add(entry); 
Full Snippet Info
9
CodeRank
67:	return sources.isEmpty() 
-
69:	: Errors.convert(sources.get(sources.size() - 1)).toString(); 
Full Snippet Info
9
CodeRank
58:	Assert.assertEquals(3, versions.size()); 
59:	Assert.assertTrue(versions.contains("main")); 
60:	Assert.assertFalse(versions.contains("1.2")); 
61:	Assert.assertTrue(versions.contains("myfaces")); 
62:	Assert.assertTrue(versions.contains("myfaces2")); 
Full Snippet Info
9
CodeRank
58:	return segments.get(segments.size() - 1); 
Full Snippet Info
10
CodeRank
72:	customHeaders.put(name, header); 
-
74:	header.add(value); 
Full Snippet Info
9
CodeRank
47:	if (joinNode.getCriteria().size() == equiCriteria.size()) { 
-
50:	AliasPair expectedEquiClause = equiCriteria.get(i++); 
Full Snippet Info
10
CodeRank
87:	if (this.includePatterns.isEmpty() && this.excludePatterns.isEmpty()) { 
-
103:	return (CollectionUtils.isEmpty(list) ? null : list.toArray(new String[list.size()])); 
Full Snippet Info
9
CodeRank
81:	return buffers.size(); 
Full Snippet Info
9
CodeRank
54:	if (values != null && !values.isEmpty()) { 
55:	return values.get(0); 
Full Snippet Info
9
CodeRank
43:	if(operands.isEmpty()) { 
-
46:	if(operands.size() != 2) { 
47:	throw new CommandLineException(getName() + " expects 2 operands but got " + operands.size()); 
-
49:	final Object left = operands.get(0).resolveValue(ctx, response); 
-
53:	final Object right = operands.get(1).resolveValue(ctx, response); 
Full Snippet Info
9
CodeRank
35:	names.add("ECMAScript"); 
36:	names.add("ecmascript"); 
37:	names.add("JavaScript"); 
38:	names.add("javascript"); 
39:	names.add("js"); 
Full Snippet Info
9
CodeRank
82:	if ( _lst.size() == 0 ){ 
83:	_lst.add( _factory.get() ); 
84:	return _lst.get( 0 ); 
-
87:	ByteBuffer cur = _lst.get( _lst.size() - 1 ); 
-
91:	_lst.add( _factory.get() ); 
92:	return _lst.get( _lst.size() - 1 ); 
Full Snippet Info
8
CodeRank
40:	assertThat(list.size()).isEqualTo(3); 
41:	assertThat(list.get(0)).isSameAs(alpha); 
42:	assertThat(list.get(1)).isSameAs(translate); 
43:	assertThat(list.get(2)).isSameAs(rotate); 
Full Snippet Info
8
CodeRank
57:	return mergeConflicts.toArray(new String[mergeConflicts.size()]); 
Full Snippet Info
8
CodeRank