se.jbee.inject
Class Array
Object
se.jbee.inject.Array
public final class Array
- extends Object
Silks array util.
- Author:
- Jan Bernitt (jan@jbee.se)
|
Constructor Summary |
Array()
|
|
Method Summary |
static
|
append(T[] array,
T value)
|
static
|
copy(T[] list,
int length)
|
static
|
fill(T value,
int length)
|
static
|
insert(T[] array,
T value,
int index)
|
static
|
newArrayInstance(Class<T[]> arrayType,
int length)
|
static
|
newInstance(Class<T> componentType,
int length)
|
static
|
of(Collection<? extends T> list,
Class<T> type)
|
static
|
of(Collection<? extends T> list,
T[] empty)
|
static
|
prepand(T value,
T[] array)
|
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Array
public Array()
insert
public static <T> T[] insert(T[] array,
T value,
int index)
append
public static <T> T[] append(T[] array,
T value)
prepand
public static <T> T[] prepand(T value,
T[] array)
newInstance
public static <T> T[] newInstance(Class<T> componentType,
int length)
newArrayInstance
public static <T> T[] newArrayInstance(Class<T[]> arrayType,
int length)
fill
public static <T> T[] fill(T value,
int length)
of
public static <T> T[] of(Collection<? extends T> list,
Class<T> type)
of
public static <T> T[] of(Collection<? extends T> list,
T[] empty)
copy
public static <T> T[] copy(T[] list,
int length)