Package org.n52.io

Class Utils


  • public final class Utils
    extends Object
    • 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.