com.google.inject.internal.util
Class ObjectArrays

java.lang.Object
  extended by com.google.inject.internal.util.ObjectArrays

public final class ObjectArrays
extends Object

Static utility methods pertaining to object arrays.

Author:
Kevin Bourrillion

Method Summary
static
<T> T[]
newArray(T[] reference, int length)
          Returns a new array of the given length with the same type as a reference array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newArray

public static <T> T[] newArray(T[] reference,
                               int length)
Returns a new array of the given length with the same type as a reference array.

Parameters:
reference - any array of the desired type
length - the length of the new array


Copyright © 2006-2011 Google, Inc.. All Rights Reserved.