|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.common.collect.ObjectArrays
public final class ObjectArrays
Static utility methods pertaining to object arrays.
| Method Summary | ||
|---|---|---|
static
|
concat(T[] first,
T[] second,
Class<T> type)
Returns a new array of a specified type, containing the concatenated contents of the two given arrays. |
|
static
|
emptyArray(T[] array)
Returns an empty (immutable) array with the same component type as the specified array. |
|
static
|
newArray(Class<T> type,
int length)
Returns a new array with the specified component type and length. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> T[] newArray(Class<T> type,
int length)
type - the component typelength - the length of the new arraypublic static <T> T[] emptyArray(T[] array)
array - the array from which to infer the component type
public static <T> T[] concat(T[] first,
T[] second,
Class<T> type)
first - the first array of elements to concatenatesecond - the second array of elements to concatenatetype - the component type of the returned concatenated array
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||