org.openjena.atlas.lib
Class ArrayUtils

java.lang.Object
  extended by org.openjena.atlas.lib.ArrayUtils

public class ArrayUtils
extends Object

Collection of array-related operations


Method Summary
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 Detail

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



Licenced under the Apache License, Version 2.0