Creating immutable List from Iterable

107 views
Skip to first unread message

ger...@gmail.com

unread,
Jul 11, 2008, 1:42:59 PM7/11/08
to Google Collections Library - developer list
java.util.Collections.unmodifiableList(Lists.newArrayList(someIterable));

Is there another (short) way to create an immutable list (arraylist)
from some iterable instance without using java.util.Collection?

Jared Levy

unread,
Jul 11, 2008, 2:14:56 PM7/11/08
to ger...@gmail.com, Google Collections Library - developer list
Reply all
Reply to author
Forward
0 new messages