com.google.inject.internal.util
Class ObjectArrays
java.lang.Object
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
|
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 |
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 typelength
- the length of the new array
Copyright © 2006-2011 Google, Inc.. All Rights Reserved.