The list of methods to do List Copy are organized into topic(s).
List
copy(Collection list)
copy
if (list == null || list.isEmpty()) {
return new ArrayList<T>(0);
return new ArrayList<T>(list);
List
copy(java.util.List list)
for providing a copy of a list -- especially useful for providing a concurrency safe iteration of a list
if (list instanceof java.util.ArrayList)
return (List<T>) ((java.util.ArrayList) list).clone();
else
return new ArrayList(list);
List
copy(List master) copy
if (master == null) {
return null;
return new ArrayList(master);
List
copy(List oldlist) copy
List list = new ArrayList();
for (Iterator i = oldlist.iterator(); i.hasNext();) {
list.add(i.next());
return list;
List
copy(List master)
copy
if (master == null) {
return null;
return new ArrayList<E>(master);
List
copy(List source, int index)
copy
List<Integer> destination = new ArrayList<>();
for (int i = index; i < source.size(); i++) {
destination.add(new Integer(source.get(i)));
return destination;
List
copy(List list)
copy
List<T> copy = new ArrayList<T>();
for (int i = 0; i < list.size(); i++) {
copy.add(list.get(i));
return copy;