Silk DI 0.6


se.jbee.inject
Class Array

Object
  extended by 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
<T> T[]
append(T[] array, T value)
           
static
<T> T[]
copy(T[] list, int length)
           
static
<T> T[]
fill(T value, int length)
           
static
<T> T[]
insert(T[] array, T value, int index)
           
static
<T> T[]
newArrayInstance(Class<T[]> arrayType, int length)
           
static
<T> T[]
newInstance(Class<T> componentType, int length)
           
static
<T> T[]
of(Collection<? extends T> list, Class<T> type)
           
static
<T> T[]
of(Collection<? extends T> list, T[] empty)
           
static
<T> T[]
prepand(T value, T[] array)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Array

public Array()
Method Detail

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)

Silk DI 0.6