public final class ArrayCopy
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
static boolean[] | 
copyOf(boolean[] source,
      int len)
Arrays.copyOf(...) is a Java6 thing. 
 | 
static char[] | 
copyOf(char[] source,
      int len)
Arrays.copyOf(...) is a Java6 thing. 
 | 
static <E> E[] | 
copyOf(E[] source,
      int len)
Arrays.copyOf(...) is a Java6 thing. 
 | 
static int[] | 
copyOf(int[] source,
      int len)
Arrays.copyOf(...) is a Java6 thing. 
 | 
static <E> E[] | 
copyOfRange(E[] source,
           int from,
           int to)
Arrays.copyOf(...) is a Java6 thing. 
 | 
public static final <E> E[] copyOf(E[] source,
                                   int len)
E - The generic type of the array we are copying.source - the source array.len - the length of the new array copy.public static final <E> E[] copyOfRange(E[] source,
                                        int from,
                                        int to)
E - The generic type of the array we are copying.source - the source array.from - the start point of the copy (inclusive).to - the end point of the copy (exclusive).public static final char[] copyOf(char[] source,
                                  int len)
source - the source array.len - the length of the new array copy.public static final int[] copyOf(int[] source,
                                 int len)
source - the source array.len - the length of the new array copy.public static final boolean[] copyOf(boolean[] source,
                                     int len)
source - the source array.len - the length of the new array copy.Copyright © 2021 Jason Hunter, Brett McLaughlin. All Rights Reserved.