sleep.runtime
public interface ScalarArray extends Serializable
This interface lets you implement your own data structure behind a scalar array.
To instantiate a custom scalar array:
Scalar temp = SleepUtils.getArrayScalar(new MyScalarArray());
When implementing the following interface, keep in mind you are implementing an interface to an array data structure.
Method Summary | |
---|---|
Scalar | add(Scalar value, int index) |
Scalar | getAt(int index) |
Scalar | pop() |
Scalar | push(Scalar value) |
void | remove(Scalar value) |
Scalar | remove(int index) |
Iterator | scalarIterator() |
int | size() |
void | sort(Comparator compare) |