Java Array Clone clone(int[] array)

Here you can find the source of clone(int[] array)

Description

clone

License

BSD License

Declaration

public static int[] clone(int[] array) 

Method Source Code

//package com.java2s;
/**//from  w w w.  ja  v a 2  s. c o m
 * This class is part of JCodec ( www.jcodec.org ) This software is distributed
 * under FreeBSD License
 * 
 * @author Jay Codec
 * 
 */

public class Main {
    public static int[] clone(int[] array) {
        if (array == null) {
            return null;
        }
        return (int[]) array.clone();
    }

    public static long[] clone(long[] array) {
        if (array == null) {
            return null;
        }
        return (long[]) array.clone();
    }

    public static Object[] clone(Object[] array) {
        if (array == null) {
            return null;
        }
        return (Object[]) array.clone();
    }
}

Related

  1. clone(float[] array)
  2. clone(float[] f)
  3. clone(float[][] array)
  4. clone(int[] a)
  5. clone(int[] array)
  6. clone(int[] array)
  7. clone(int[] in)
  8. clone(int[] src)
  9. clone(int[] src, int[] dest)