List of utility methods to do List Clone
List | cloneStringList(List Clone the specified List. if (list == null) return null; List<String> cloneList = new ArrayList<String>(); for (String value : list) cloneList.add(value); return cloneList; |
List | cloneStringList(List Method to clone a specific list. List<String> result = new ArrayList<String>(); for (String s : toClone) { result.add(new String(s)); return result; |
List | cloneToList(final Collection for defensive copying if (list == null) { return null; return new ArrayList<E>(list); |
List
| getClone(List
get Clone if (lls == null) { return (lls); List<List<String>> result = new ArrayList<List<String>>(lls.size()); for (List<String> l : lls) { result.add(new ArrayList<String>(l)); return (result); ... |
List | getClonedSublistOf(List get Cloned Sublist Of List<String> subList = new ArrayList<String>(); for (int i = startIndexInclusive; i < endIndexExclusive; ++i) subList.add(list.get(i)); return subList; |