public class JavaLightArrayBoolean extends Object implements LightArrayBoolean
LightArrayBoolean
for java environmentsConstructor and Description |
---|
JavaLightArrayBoolean()
Construct a
JavaLightArrayBoolean |
Modifier and Type | Method and Description |
---|---|
boolean |
get(int index)
get the object at a specific index
|
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 JavaLightArrayBoolean()
JavaLightArrayBoolean
public boolean get(int index)
LightArrayBoolean
get
in interface LightArrayBoolean
index
- the indexpublic int length()
LightArrayBoolean
length
in interface LightArrayBoolean
public void push(boolean value)
LightArrayBoolean
push
in interface LightArrayBoolean
public void set(int index, boolean value)
LightArrayBoolean
set
in interface LightArrayBoolean
index
- the indexvalue
- the value to storepublic boolean shift()
LightArrayBoolean
shift
in interface LightArrayBoolean
public void unshift(boolean value)
LightArrayBoolean
unshift
in interface LightArrayBoolean
value
- to pushCopyright © 2020 Magnolia International Ltd.. All rights reserved.