Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

All snippets
Create a snippet
Full search

Quick search:


Editing Snippet ID: #1004686
Snippet name:
Category, Type:
Content:
static <A, B extends A> void addAll(Collection<A> c, Iterable<B> b) { if (c != null && b != null) for (A a : b) c.add(a); } static <A, B extends A> bool addAll(Collection<A> c, Collection<B> b) { ret c != null && b != null && c.addAll(b); } static <A, B extends A> bool addAll(Collection<A> c, B... b) { ret c != null && b != null && c.addAll(Arrays.asList(b)); } ifclass Collector static <A, B extends A> void addAll(Collector<A> c, Iterable<B> b) { if (c != null && b != null) for (A a : b) c.add(a); } endif static <A, B> Map<A, B> addAll(Map<A, B> a, Map<? extends A,? extends B> b) { if (a != null && b != null) a.putAll(b); ret a; }
Comment:
Public (visible to everyone):
Created: 2016-08-26 19:33:44

This page without fancy editor.