Class ImmutableCopy
- java.lang.Object
-
- com.google.appengine.api.internal.ImmutableCopy
-
public final class ImmutableCopy extends Object
Makes immutable copies of collections using only standard Java classes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> List<E>
list(Collection<E> collection)
Returns an immutable List with the same contents as the given collection.
-
-
-
Method Detail
-
list
public static <E> List<E> list(Collection<E> collection)
Returns an immutable List with the same contents as the given collection. The List is guaranteed not to change even if the collection does.
-
-