|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SA
This is the interface for Spark arrays of objects. Arrays are indexed starting at zero.
Method Summary | |
---|---|
void |
add(boolean val)
|
void |
add(double val)
|
void |
add(long val)
|
void |
add(SA val)
|
void |
add(SO val)
|
void |
add(java.lang.String val)
|
void |
add(SV val)
Adds a new value to the end of the array |
void |
delete(int index)
Removes a value from the array. |
void |
delete(int first,
int last)
Removes a sequence of values from the array. |
SA |
extract(int first,
int last)
Functions the same as delete except that the values to be deleted are first copied out of the array and then returned as an array. |
SV |
get(int index)
The value stored at index. |
double |
getDouble(int index)
|
long |
getLong(int index)
|
SA |
getSA(int index)
|
SO |
getSO(int index)
|
java.lang.String |
getString(int index)
|
void |
insert(int index,
boolean val)
|
void |
insert(int index,
double val)
|
void |
insert(int index,
long val)
|
void |
insert(int index,
SA vals)
Inserts a bunch of values into the array. |
void |
insert(int index,
SO val)
|
void |
insert(int index,
java.lang.String val)
|
void |
insert(int index,
SV val)
Inserts a value into the array at the specified index. |
boolean |
isTrue(int index)
|
void |
set(int index,
boolean val)
|
void |
set(int index,
double val)
|
void |
set(int index,
long val)
|
void |
set(int index,
SA val)
|
void |
set(int index,
SO val)
|
void |
set(int index,
java.lang.String val)
|
void |
set(int index,
SV val)
Changes the value at a particular index |
int |
size()
the size of the array |
Methods inherited from interface spark.data.SParented |
---|
myParent, newParent |
Method Detail |
---|
int size()
SV get(int index)
index
- the index of the value to be retrieved.
java.lang.RuntimeException
- if there is no such indexlong getLong(int index)
double getDouble(int index)
boolean isTrue(int index)
java.lang.String getString(int index)
SA getSA(int index)
SO getSO(int index)
void set(int index, SV val)
index
- the index where the value is to be savedval
- the value to be saved
java.lang.RuntimeException
- is if there is no such index or the
value cannot be handled by the implementation.void set(int index, long val)
void set(int index, double val)
void set(int index, boolean val)
void set(int index, java.lang.String val)
void set(int index, SA val)
void set(int index, SO val)
void add(SV val)
val
- the new value
java.lang.RuntimeException
- if the array cannot be extended.void add(long val)
void add(double val)
void add(boolean val)
void add(java.lang.String val)
void add(SA val)
void add(SO val)
void insert(int index, SV val)
index
- the location where the new value is to be inserted.val
- the new value
java.lang.RuntimeException
- if the index is invalid, the new value is
incompatible with the array implementation or the array cannot
be extended.void insert(int index, long val)
void insert(int index, double val)
void insert(int index, boolean val)
void insert(int index, java.lang.String val)
void insert(int index, SO val)
void insert(int index, SA vals)
index
- the location in the array where thevals
- the new values to be inserted
java.lang.RuntimeException
- if the index is invalid, any of the new values are
incompatible with the array implementation or the array cannot
be extended.void delete(int index)
index
- the location of the value to be removed.
java.lang.RuntimeException
- if the index is invalidvoid delete(int first, int last)
first
- the index of the first value to be removed.last
- the index of the last value to be removed.
java.lang.RuntimeException
- if the index is invalidSA extract(int first, int last)
first
- the index of the first value to be removed.last
- the index of the last value to be removed.
java.lang.RuntimeException
- if the index is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |