|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.elib.tables.EList | +--org.erights.e.elib.tables.FlexList | +--org.erights.e.elib.tables.FlexListImpl
FlexList extends EList with mutation operations.
Field Summary | |
private int |
mySize
mySize <= myVals.length |
private Object |
myVals
myVals is an array |
(package private) static long |
serialVersionUID
|
Fields inherited from interface org.erights.e.elib.serial.PassByProxy |
HONORARY, HONORED_NAMES |
Fields inherited from interface org.erights.e.elib.serial.Persistent |
HONORARY, HONORED_NAMES |
Constructor Summary | |
(package private) |
FlexListImpl(int capacity)
|
(package private) |
FlexListImpl(Object vals,
int size)
The caller is *trusted* not to modify vals after handing it in. |
Method Summary | |
Object |
get(int index)
Enabled: What value does 'index' map to? |
Object |
getSecretArray()
The caller is *trusted* not to modify the returned array. |
void |
put(int index,
Object value)
Places value at this index. |
private static void |
qsort(Object[] a,
int start,
int bound,
CompFunc func)
|
void |
replace(int start,
int bound,
EList other,
int lstart,
int lbound)
Replace from start..!bound in this list with lstart..!lbound in other. |
void |
setSize(int newSize)
Make this list be exactly 'newSize', truncating or extending as necessary. |
int |
size()
How many entries are in the table? |
ConstList |
snapshot()
Enabled: Returns a ConstList whose state is a snapshot of the state of this list at the time of the snapshot() request. |
(package private) void |
sortInPlace(CompFunc func)
Reorders the list in place into ascending order according to func |
Class |
valueType()
All values in this table must be of this type |
private void |
zero(int start,
int bound)
Overwrites this run with the zero element for my valueType(). |
Methods inherited from class org.erights.e.elib.tables.FlexList |
__optUncall, __printOn, append, ensureSize, fromType, fromType, insert, make, make, pop, push, readOnly, removeRun, removeRun, setRun, setRun |
Methods inherited from class org.erights.e.elib.tables.EList |
add, asKeys, asMap, asSet, contains, diverge, diverge, getArray, getArray, getArray, includes, indexOf1, indexOf1, iterate, last, lastIndexOf1, lastIndexOf1, lastStartOf, lastStartOf, multiply, printOn, run, run, sort, sort, startOf, startOf, toString, with, with |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
static final long serialVersionUID
private Object myVals
private int mySize
Constructor Detail |
FlexListImpl(Object vals, int size)
FlexListImpl(int capacity)
Method Detail |
public Object getSecretArray()
getSecretArray
in interface ArrayedList
public ConstList snapshot()
EList
snapshot
in class EList
public Object get(int index) throws IndexOutOfBoundsException
EList
get
in class EList
IndexOutOfBoundsException
- if index isn't in 0..!size.public int size()
size
in class EList
public Class valueType()
valueType
in class EList
public void put(int index, Object value) throws IndexOutOfBoundsException
put
in class FlexList
IndexOutOfBoundsException
- if index isn't in 0..sizevoid sortInPlace(CompFunc func)
sortInPlace
in class FlexList
private static void qsort(Object[] a, int start, int bound, CompFunc func)
private void zero(int start, int bound)
public void setSize(int newSize)
setSize
in class FlexList
public void replace(int start, int bound, EList other, int lstart, int lbound)
replace
in class FlexList
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |