|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
org.cruxframework.crux.core.client.collection.Array<E>
E - The type stored in the array elementspublic class Array<E>
The root Array type that provides read-access to an array that might still be mutable by another actor.
| Constructor Summary | |
|---|---|
protected |
Array()
|
| Method Summary | |
|---|---|
void |
add(E elem)
|
void |
clear()
|
E |
get(int index)
|
int |
indexOf(E elem)
|
void |
insert(int index,
E elem)
Inserts elem before the element residing at index. |
void |
remove(int index)
Removes the element at the specified index. |
void |
set(int index,
E elem)
Replaces the element at the specified index. |
void |
setSize(int newSize,
E fillValue)
Changes the array size. |
int |
size()
|
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Array()
| Method Detail |
|---|
public final void add(E elem)
public final void clear()
public final E get(int index)
public final int indexOf(E elem)
elem -
public final void insert(int index,
E elem)
elem before the element residing at index.
index - in the range [0, this.size()], inclusive; if index is equal to
the array's current size, the result is equivalent to calling
add(Object)elem - the element to insert or nullpublic final void remove(int index)
public final void set(int index,
E elem)
index - in the range [0, this.size()), exclusiveelem - the element to insert or null
public final void setSize(int newSize,
E fillValue)
newSize is less than the current size,
the array is truncated. If newSize is greater than the current
size the array is grown and the new elements of the array filled up with
fillValue.
public final int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||