Class ArrayUtils

java.lang.Object
org.apache.jena.atlas.lib.ArrayUtils

public class ArrayUtils extends Object
Collection of array-related operations
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> T[]
    alloc(Class<T> cls, int n)
    Allocate an array of generic type T (initialized to null)
    static <T> T[]
    copy(T[] array)
    Allocation space and copy
    static <T> T[]
    copy(T[] array, int start, int finish)
    Allocation space and copy

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • alloc

      public static <T> T[] alloc(Class<T> cls, int n)
      Allocate an array of generic type T (initialized to null)
    • copy

      public static <T> T[] copy(T[] array)
      Allocation space and copy
    • copy

      public static <T> T[] copy(T[] array, int start, int finish)
      Allocation space and copy