org.openjena.atlas.lib
Class ArrayUtils

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

public class ArrayUtils
extends java.lang.Object

Collection of array-related operations


Method Summary
static
<T> T[]
alloc(java.lang.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(java.lang.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



Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.