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: #1001634
Snippet name:
Category, Type:
Content:
static <A> ArrayList<A> cloneList(Iterable<A> l) { ret l instanceof Collection ? cloneList((Collection) l) : asList(l); } static <A> ArrayList<A> cloneList(Collection<A> l) { if (l == null) ret new L; synchronized(collectionMutex(l)) { ret new ArrayList<A>(l); } }
Comment:
Public (visible to everyone):
Created: 2015-10-30 14:45:58

This page without fancy editor.