T
- the type of object to storepublic interface LightArray<T>
Modifier and Type | Method and Description |
---|---|
T |
get(int index)
get the object at a specific index
|
int |
length()
the length of the array
|
void |
push(T value)
push a value on to the array
|
void |
set(int index,
T value)
put an object to a given index.
|
T |
shift()
pop a value from the array
|
void |
unshift(T value)
push a value onto the array
|
T get(int index)
index
- the indexvoid set(int index, T value)
index
- the indexvalue
- the value to storeint length()
void push(T value)
value
- T shift()
void unshift(T value)
value
- to pushCopyright © 2018 Magnolia International Ltd.. All rights reserved.