Package edu.jas.util

Class ArrayUtil

java.lang.Object
edu.jas.util.ArrayUtil

@Deprecated public class ArrayUtil extends 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().
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ArrayUtil

      public ArrayUtil()
      Deprecated.
  • Method Details

    • 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.