|
|||||||||||
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
Safe:
Field Summary | |
(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) |
FlexList()
Only subclasses within the package |
Method Summary | |
Object[] |
__optUncall()
Enabled: A FlexList is unconditionally transparent |
void |
__printOn(TextWriter out)
Enabled: Prints use E list syntax followed by ".diverge()" (to indicate flexible). |
void |
append(EList other)
Enabled: Put all the elements of other, in order, onto the end of this list. |
void |
ensureSize(int minSize)
Enabled: Make this list be at least 'minSize', extending as necessary. |
static FlexList |
fromType(Class type)
Enabled: |
static FlexList |
fromType(Class type,
int initialCapacity)
Enabled: |
void |
insert(int start,
Object value)
Enabled: 'x.insert(i,v)' is the same as 'x(i,i) := [v]', ie, 'x.setRun(i,i,[v])'. |
static FlexList |
make()
Enabled: |
static FlexList |
make(int initialCapacity)
Enabled: |
Object |
pop()
Enabled: Remove and return the last element of this list. |
void |
push(Object value)
Enabled: Put the value on the end of the list, making the list one larger. |
abstract void |
put(int index,
Object value)
Enabled: Places value at this index. |
EList |
readOnly()
Enabled: Returns a read-only facet on this list. |
ConstList |
removeRun(int start,
int bound)
Enabled: Remove and return the run of this list from start..!bound |
ConstList |
removeRun(Object intReg)
Enabled: Remove and return the run of this list at intReg |
abstract void |
replace(int start,
int bound,
EList other,
int lstart,
int lbound)
Enabled: Replace from start..!bound in this list with lstart..!lbound in other. |
void |
setRun(int start,
int bound,
EList other)
Enabled: Replace from start..!bound in this list with other. |
void |
setRun(Object intReg,
EList other)
Enabled: Replace the run at intReg with other. |
abstract void |
setSize(int newSize)
Enabled: Make this list be exactly 'newSize', truncating or extending as necessary. |
(package private) abstract void |
sortInPlace(CompFunc func)
Reorders the list in place into ascending order according to func |
Methods inherited from class org.erights.e.elib.tables.EList |
add, asKeys, asMap, asSet, contains, diverge, diverge, get, getArray, getArray, getArray, includes, indexOf1, indexOf1, iterate, last, lastIndexOf1, lastIndexOf1, lastStartOf, lastStartOf, multiply, printOn, run, run, size, snapshot, sort, sort, startOf, startOf, toString, valueType, 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
Constructor Detail |
FlexList()
Method Detail |
public EList readOnly()
readOnly
in class EList
public abstract void put(int index, Object value) throws IndexOutOfBoundsException
IndexOutOfBoundsException
- if index isn't in 0..sizeabstract void sortInPlace(CompFunc func)
public void push(Object value)
public void append(EList other)
public Object pop()
public abstract void setSize(int newSize)
public void ensureSize(int minSize)
org.erights.e.elib.tables.FlexList#setSize
public void setRun(Object intReg, EList other)
public void setRun(int start, int bound, EList other)
public void insert(int start, Object value)
public abstract void replace(int start, int bound, EList other, int lstart, int lbound)
public ConstList removeRun(Object intReg)
public ConstList removeRun(int start, int bound)
public Object[] __optUncall()
public void __printOn(TextWriter out) throws IOException
__printOn
in interface EPrintable
IOException
public static FlexList make()
public static FlexList make(int initialCapacity)
public static FlexList fromType(Class type)
public static FlexList fromType(Class type, int initialCapacity)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |