public final class Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T[] |
copy(T[] source)
Copies an array via
System.arraycopy(Object, int, Object, int, int). |
public static <T> T[] copy(T[] source)
Copies an array via
System.arraycopy(Object, int, Object, int, int). This is useful
for objects encapsulating arrays from being externally modified.
Note: No deep copy is made.
T - the source's typesource - the array to copy.Copyright © 2013–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.