|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.core.client.JsArrayUtils
public class JsArrayUtils
Utility class for manipulating JS arrays. These methods are not on other JavaScriptObject subclasses, such as JsArray, because adding new methods might break existing subtypes.
Method Summary | ||
---|---|---|
static JsArrayInteger |
readOnlyJsArray(byte[] array)
Take a Java array, and produce a JS array that is only used for reading. |
|
static JsArrayNumber |
readOnlyJsArray(double[] array)
Take a Java array, and produce a JS array that is only used for reading. |
|
static JsArrayNumber |
readOnlyJsArray(float[] array)
Take a Java array, and produce a JS array that is only used for reading. |
|
static JsArrayInteger |
readOnlyJsArray(int[] array)
Take a Java array, and produce a JS array that is only used for reading. |
|
static JsArrayNumber |
readOnlyJsArray(long[] array)
Take a Java array, and produce a JS array that is only used for reading. |
|
static JsArrayInteger |
readOnlyJsArray(short[] array)
Take a Java array, and produce a JS array that is only used for reading. |
|
static
|
readOnlyJsArray(T[] array)
Take a Java array, and produce a JS array that is only used for reading. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static JsArrayInteger readOnlyJsArray(byte[] array)
array
- source array
public static JsArrayNumber readOnlyJsArray(double[] array)
array
- source array
public static JsArrayNumber readOnlyJsArray(float[] array)
array
- source array
public static JsArrayInteger readOnlyJsArray(int[] array)
array
- source array
public static JsArrayNumber readOnlyJsArray(long[] array)
NOTE: long values are not supported in JS, so long emulation is slow and this method assumes that all the values can be safely stored in a double.
array
- source array - its values are assumed to be in the valid range
for doubles -- if the values exceed 2^53, low-order bits will be lost
public static JsArrayInteger readOnlyJsArray(short[] array)
array
- source array
public static <T extends JavaScriptObject> JsArray<T> readOnlyJsArray(T[] array)
array
- source array
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |