Returns a copy containing the populated elements of this array. @return a new FastArray with copied storage
()
| 162 | * @return a new {@code FastArray} with copied storage |
| 163 | */ |
| 164 | public FastArray copy() { |
| 165 | final Object[] newData = new Object[size]; |
| 166 | System.arraycopy(data, 0, newData, 0, size); |
| 167 | return new FastArray(newData); |
| 168 | } |
| 169 | |
| 170 | /** |
| 171 | * Indicates whether this array contains any populated elements. |
no test coverage detected