sleep.runtime
Interface ScalarArray
- Serializable
- ArgumentArray, ArrayContainer, CollectionWrapper
public interface ScalarArray
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.
getAt
public Scalar getAt(int index)
remove
public Scalar remove(int index)
remove
public void remove(Scalar value)
scalarIterator
public Iterator scalarIterator()
sort
public void sort(Comparator compare)