public class Array<V> extends Object implements Iterable<String>
| Constructor and Description |
|---|
Array() |
Array(Number size) |
Array(V first,
V second,
V... others) |
| Modifier and Type | Method and Description |
|---|---|
void |
$forEach(Callback1<V> callback)
this method does exactly as
forEach(Callback1), but allows in java 8 the usage of lambda easily as the forEach method overloads
the method from the new Iterable interface. |
V |
$get(int index) |
V |
$get(String index) |
int |
$length() |
void |
$length(int newLength) |
void |
$set(int index,
V value) |
void |
$set(String index,
V value) |
Array<V> |
concat(Array<V>... arrays) |
static <T> Array<T> |
copyOf(List<T> list)
constructors used on the server side only.
|
void |
forEach(Callback1<V> callback) |
int |
indexOf(V element) |
int |
indexOf(V element,
int aStart) |
Iterator<String> |
iterator() |
List<V> |
java()
this gives access to the java implementation.
|
String |
join() |
String |
join(String separator) |
V |
pop() |
int |
push(V... values) |
Array<V> |
reverse() |
V |
shift() |
Array<V> |
slice(int start) |
Array<V> |
slice(int start,
int end) |
void |
sort() |
void |
sort(SortFunction<V> aFunction) |
Array<V> |
splice(int start) |
Array<V> |
splice(int start,
int howMany) |
Array<V> |
splice(int start,
int howMany,
V... values) |
String |
toString() |
int |
unshift(V... values) |
static <T> Array<T> |
wrap(List<T> list)
constructors used on the server side only.
|
public Array()
public Array(Number size)
public static <T> Array<T> wrap(List<T> list)
list - public static <T> Array<T> copyOf(List<T> list)
list - public List<V> java()
public V $get(int index)
public void $set(int index,
V value)
public int $length()
public void $length(int newLength)
public int indexOf(V element)
public int indexOf(V element, int aStart)
public String join()
public V pop()
public int push(V... values)
public V shift()
public void sort()
public void sort(SortFunction<V> aFunction)
public int unshift(V... values)
public void $forEach(Callback1<V> callback)
forEach(Callback1), but allows in java 8 the usage of lambda easily as the forEach method overloads
the method from the new Iterable interface. The generated code is, as expected, forEachcallback - Copyright © 2015. All Rights Reserved.