Class ImmutableCopy


  • public final class ImmutableCopy
    extends Object
    Makes immutable copies of collections using only standard Java classes.
    • 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.