Package edu.jas.util
Class ArrayUtil
- java.lang.Object
-
- edu.jas.util.ArrayUtil
-
@Deprecated public class ArrayUtil extends java.lang.Object
Deprecated.(forRemoval=true)Array utilities. For example copyOf from Java 6. Note: unused at the moment since it is not working in Java 5, use java.util.Arrays.copyOf().- Author:
- Heinz Kredel
-
-
Constructor Summary
Constructors Constructor Description ArrayUtil()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> T[]
copyOf(T[] original)
Deprecated.Copy the specified array.static <T> T[]
copyOf(T[] original, int newLength)
Deprecated.Copy the specified array.
-
-
-
Constructor Detail
-
ArrayUtil
public ArrayUtil()
Deprecated.
-
-
Method Detail
-
copyOf
public static <T> T[] copyOf(T[] original, int newLength)
Deprecated.Copy the specified array.- Parameters:
original
- array.newLength
- new array length.- Returns:
- copy of original.
-
copyOf
public static <T> T[] copyOf(T[] original)
Deprecated.Copy the specified array.- Parameters:
original
- array.- Returns:
- copy of original.
-
-