Android Utililty Methods Array Copy

List of utility methods to do Array Copy


The list of methods to do Array Copy are organized into topic(s).


voidarraycopy(byte[] src, int src_position, byte[] dst, int dst_position, int length)
This is really a debugging version of System.arraycopy().
double[]copy(double[] dataToCopy)
ObjectcopyArrayGrow1(Object array, Class newArrayComponentType)
Returns a copy of the given array of size 1 greater than the argument.
ObjectcopyOf(Object src)
copy Of
String[]copyOf(String[] obj)
copy Of
String[]copyOf(String[] obj, int newSize)
copy Of
T[]copyOf(T[] original)
Copy the specified array.
T[]copyOf(T[] original, int newLength)
Copy the specified array.
T[]copyOf(T[] source, T[] result)
Copies the specified array into specified result array, truncating or padding with zeros (if necessary) so the copy has the specified length.
boolean[]copyOf(boolean[] obj)
copy Of