Package org.n52.io
Class Utils
- java.lang.Object
-
- org.n52.io.Utils
-
public final class Utils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T[]copy(T[] source)Copies an array viaSystem.arraycopy(Object, int, Object, int, int).
-
-
-
Method Detail
-
copy
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.
- Type Parameters:
T- the source's type- Parameters:
source- the array to copy.- Returns:
- a copied instance of the array.
-
-