Java 8 List - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 List class.

This code example shows how to use the following methods: get, size
10
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: get, size
    } 
 
    @Override 
    public Expression rewriteParameter(Parameter node, Void context, ExpressionTreeRewriter<Void> treeRewriter)
    { 
        checkState(parameterValues.size() > node.getPosition(), "Too few parameter values");
        return coerceIfNecessary(node, parameterValues.get(node.getPosition()));
    } 
 
    private Expression coerceIfNecessary(Expression original, Expression rewritten)
    { 
        if (analysis == null) {
            return rewritten;
        } 
 
        Type coercion = analysis.getCoercion(original);
        if (coercion != null) {
            rewritten = new Cast(
                    rewritten,
                    coercion.getTypeSignature().toString(),
Full Snippet Info
10
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: get, size
    { 
    } 
 
    public static void assertPageEquals(List<? extends Type> types, Page actualPage, Page expectedPage)
    { 
        assertEquals(types.size(), actualPage.getChannelCount());
        assertEquals(actualPage.getChannelCount(), expectedPage.getChannelCount());
        for (int i = 0; i < actualPage.getChannelCount(); i++) {
            assertBlockEquals(types.get(i), actualPage.getBlock(i), expectedPage.getBlock(i));
        } 
    } 
} 
Full Snippet Info
10
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: size
This code example shows how to use the following methods: size
 
    @Override 
    public final WindowFunction createWindowFunction(List<Integer> argumentChannels)
    { 
        requireNonNull(argumentChannels, "inputs is null");
        checkArgument(argumentChannels.size() == signature.getArgumentTypes().size(),
                "Expected %s arguments for function %s, but got %s", 
                signature.getArgumentTypes().size(),
                signature.getName(),
                argumentChannels.size());
 
        return newWindowFunction(argumentChannels);
    } 
 
    /** 
     * Create window function instance using the supplied arguments.  The 
     * inputs have already validated. 
     */ 
    protected abstract WindowFunction newWindowFunction(List<Integer> inputs);
} 
Full Snippet Info
10
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE

Related Java 8 List Questions & Answers:

Other Java 8 List Examples

15:	
16:		// supported file formats
17:		public static final List<String> FILE_EXTN = Arrays.asList("jpg", "jpeg",
18:				"png");
19:	}

Read More

17:		ExpandableListAdapter listAdapter;
18:		ExpandableListView expListView;
19:		List<String> listDataHeader;
20:		HashMap<String, List<String>> listDataChild;
21:	
-
50:	
51:			// Adding child data
52:			List<String> top250 = new ArrayList<String>();
53:			top250.add("The Shawshank Redemption");
54:			top250.add("The Godfather");
-
59:			top250.add("12 Angry Men");
60:	
61:			List<String> nowShowing = new ArrayList<String>();
62:			nowShowing.add("The Conjuring");
63:			nowShowing.add("Despicable Me 2");
-
67:			nowShowing.add("The Wolverine");
68:	
69:			List<String> comingSoon = new ArrayList<String>();
70:			comingSoon.add("2 Guns");
71:			comingSoon.add("The Smurfs 2");

Read More

1:		 public List<Contact> getAllContacts() {
2:			List<Contact> contactList = new ArrayList<Contact>();
3:			// Select All Query
-
1:		 public List<Contact> getAllContacts() {
2:			List<Contact> contactList = new ArrayList<Contact>();
3:			// Select All Query
4:			String selectQuery = "SELECT  * FROM " + TABLE_CONTACTS;

Read More

See Code Examples for Java 8 List Methods: