Changeset 10309 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2016-06-02T00:26:31+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/CopyList.java
r9997 r10309 18 18 * @param <E> the type of elements in this list 19 19 */ 20 public final class CopyList<E> extends AbstractList<E> implements RandomAccess , Cloneable{20 public final class CopyList<E> extends AbstractList<E> implements RandomAccess { 21 21 private E[] array; 22 22 private int size; … … 113 113 114 114 // helpers: 115 /**116 * Returns another independent copy-on-write copy of this <tt>List</tt>117 * instance. Neither the elements nor the backing storage are copied.118 *119 * @return a clone of this <tt>CopyList</tt> instance120 */121 @Override122 public Object clone() {123 return new CopyList<>(array, size);124 }125 115 126 116 private void rangeCheck(int index) {
Note: See TracChangeset
for help on using the changeset viewer.