public class JsLightArrayBoolean extends Object implements LightArrayBoolean
LightArrayBoolean
that uses native javascript arraysConstructor and Description |
---|
JsLightArrayBoolean()
Construct a
JsLightArrayBoolean |
JsLightArrayBoolean(com.google.gwt.core.client.JavaScriptObject array)
Construct a
JsLightArrayBoolean with a given javascript array |
Modifier and Type | Method and Description |
---|---|
boolean |
get(int index)
get the object at a specific index
|
com.google.gwt.core.client.JavaScriptObject |
getArray()
get the underlying javascript array
|
int |
length()
the length of the array
|
void |
push(boolean value)
push a value on to the array
|
void |
set(int index,
boolean value)
put an object to a given index. the array autoexpands and fills up missing values with null
|
boolean |
shift()
pop a value from the array
|
void |
unshift(boolean value)
push a value onto the array
|
public JsLightArrayBoolean()
JsLightArrayBoolean
public JsLightArrayBoolean(com.google.gwt.core.client.JavaScriptObject array)
JsLightArrayBoolean
with a given javascript arrayarray
- the javascript array to usepublic void push(boolean value)
LightArrayBoolean
push
in interface LightArrayBoolean
public boolean shift()
LightArrayBoolean
shift
in interface LightArrayBoolean
public boolean get(int index)
LightArrayBoolean
get
in interface LightArrayBoolean
index
- the indexpublic void set(int index, boolean value)
LightArrayBoolean
set
in interface LightArrayBoolean
index
- the indexvalue
- the value to storepublic int length()
LightArrayBoolean
length
in interface LightArrayBoolean
public void unshift(boolean value)
LightArrayBoolean
unshift
in interface LightArrayBoolean
value
- to pushpublic com.google.gwt.core.client.JavaScriptObject getArray()
Copyright © 2020 Magnolia International Ltd.. All rights reserved.