|
JDOM 2.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdom2.internal.ArrayCopy
public final class ArrayCopy
The copyOf methods on java.util.Arrays are introduced in Java6. Need an alternative to support Java5.
Method Summary | ||
---|---|---|
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
|
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
|
copyOfRange(E[] source,
int from,
int to)
Arrays.copyOf(...) is a Java6 thing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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.
|
JDOM 2.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |