|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJavaScriptObject
com.google.maps.gwt.client.MVCArray<A>
public class MVCArray<A extends JavaScriptObject>
MVCArray adds type parameterization to the generated MVCArray wrapper included in the Maps codebase.
Nested Class Summary | |
---|---|
static interface |
MVCArray.ForEachCallback<T extends JavaScriptObject>
Callback type for handling asynchronous responses from forEach. |
Constructor Summary | |
---|---|
protected |
MVCArray()
Protected constructor for internal use only. |
Method Summary | ||
---|---|---|
void |
clear()
Removes all elements from the array. |
|
static
|
create()
A mutable MVC Array. |
|
static
|
create(
A mutable MVC Array. |
|
void |
forEach(MVCArray.ForEachCallback<A> callback)
Iterate over each element, calling the provided callback. |
|
|
getArray()
Returns a reference to the underlying Array. |
|
A |
getAt(double i)
Get an element at the specified index. |
|
double |
getLength()
Returns the number of elements in this array. |
|
void |
insertAt(double i,
A elem)
Inserts an element at the specified index. |
|
A |
pop()
Removes the last element of the array and returns that element. |
|
double |
push(A elem)
Adds one element to the end of the array and returns the new length of the array. |
|
A |
removeAt(double i)
Removes an element from the specified index. |
|
void |
setAt(double i,
A elem)
Sets an element at the specified index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MVCArray()
Method Detail |
---|
public static final <T extends JavaScriptObject> MVCArray<T> create(array)
public static final <T extends JavaScriptObject> MVCArray<T> create()
public final void clear()
public final void forEach(MVCArray.ForEachCallback<A> callback)
public finalgetArray()
public final A getAt(double i)
public final double getLength()
public final void insertAt(double i, A elem)
public final A pop()
public final double push(A elem)
public final A removeAt(double i)
public final void setAt(double i, A elem)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |