public class JsElementalBase extends com.google.gwt.core.client.JavaScriptObject implements Mappable, Indexable, IndexableInt, IndexableNumber, Settable, SettableInt, SettableNumber
Modifier | Constructor and Description |
---|---|
protected |
JsElementalBase() |
Modifier and Type | Method and Description |
---|---|
Object |
at(int index)
Gets the value at a given index.
|
Object |
at(String key)
Gets the value at a given key.
|
int |
intAt(int index)
Gets the value at a given index.
|
int |
intAt(String key) |
int |
length()
Gets the length of the array.
|
double |
numberAt(int index)
Gets the value at a given index.
|
double |
numberAt(String key) |
void |
setAt(int index,
double value)
Gets the value at a given index.
|
void |
setAt(int index,
int value)
Gets the value at a given index.
|
void |
setAt(int index,
Object value)
Gets the value at a given index.
|
void |
setAt(String key,
double value) |
void |
setAt(String key,
int value) |
void |
setAt(String key,
Object value)
Sets the value at a given key.
|
public final Object at(int index)
Indexable
public final double numberAt(int index)
IndexableNumber
numberAt
in interface IndexableNumber
index
- the index to be retrievedpublic final int intAt(int index)
IndexableInt
intAt
in interface IndexableInt
index
- the index to be retrievedpublic final int length()
Indexable
length
in interface Indexable
length
in interface IndexableInt
length
in interface IndexableNumber
public final void setAt(int index, Object value)
Settable
public final void setAt(int index, double value)
SettableNumber
setAt
in interface SettableNumber
index
- the index to be retrievedvalue
- the value to be setpublic final void setAt(int index, int value)
SettableInt
setAt
in interface SettableInt
index
- the index to be retrievedvalue
- the value to be setpublic final Object at(String key)
Mappable
public final int intAt(String key)
public final double numberAt(String key)
public final void setAt(String key, Object value)
Mappable
public final void setAt(String key, int value)
public final void setAt(String key, double value)
Copyright © 2016. All rights reserved.