|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.commons.util.list.AbstractIList<V>
org.millscript.commons.util.list.AbstractUList<V>
org.millscript.commons.util.list.AbstractEList<V>
public abstract class AbstractEList<V>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.millscript.commons.util.list.AbstractIList |
|---|
AbstractIList.ListMapletIterator<V>, AbstractIList.ListMapletList<V> |
| Constructor Summary | |
|---|---|
AbstractEList()
|
|
| Method Summary | |
|---|---|
void |
append(IList<? extends V> list)
Appends the specified list to this list. |
void |
delete(java.lang.Integer pos,
V value)
Removes the value at the specified position(one based) in the list, but only if it matches the specified one. |
void |
delete(int pos,
V value)
Removes the value at the specified position(one based) in the list, but only if it matches the specified one. |
void |
delete(Maplet<? extends java.lang.Integer,? extends V> entry)
Removes the specified mapping from this list, shifting any subsequent elements to an index one lower than before. |
void |
delete0(java.lang.Integer pos,
V value)
Removes the value at the specified position(zero based) in the list, but only if it matches the specified one. |
void |
delete0(int pos,
V value)
Removes the value at the specified position(zero based) in the list, but only if it matches the specified one. |
void |
delete0(Maplet<? extends java.lang.Integer,? extends V> entry)
Removes the specified mapping from this list, shifting any subsequent elements to an index one lower than before. |
void |
deleteAll(IList<? extends V> list)
Removes all the values in the specified list from this one, for each deletion shifting any subsequent elements to an index one lower than before. |
void |
deleteKey(int key)
Removes the value at the specified index(one based), shifting any subsequent elements to an index one lower than before. |
void |
deleteKey(java.lang.Integer key)
Removes the value at the specified index(one based), shifting any subsequent elements to an index one lower than before. |
void |
deleteKey0(int key)
Removes the value at the specified index(one based), shifting any subsequent elements to an index one lower than before. |
void |
deleteKey0(java.lang.Integer key)
Removes the value at the specified index(one based), shifting any subsequent elements to an index one lower than before. |
void |
deleteSlice(int first,
int last)
Removes the specified slice of elements in this list, starting at first(one based, inclusive) and continuing
last(one based, inclusive), shifting any subsequent
elements to a lowest available index. |
void |
deleteSlice0(int first,
int last)
Removes the specified slice of elements in this list, starting at first(zero based, inclusive) and continuing
last(zero based, inclusive), shifting any subsequent
elements to a lowest available index. |
protected abstract void |
doDelete(int key,
V value)
Removes the value at the specified position(one based) in the list, but only if it matches the specified one. |
protected abstract void |
doDeleteKey(int key)
Removes the value at the specified index(one based), shifting any subsequent elements to an index one lower than before. |
protected abstract void |
doRemoveSlice(int first,
int last)
Removes the specified slice of elements in this list, starting at first(one based, inclusive) and continuing
last(one based, inclusive). |
void |
insert(java.lang.Integer pos,
V value)
Inserts the specified value at the given position(one based) in this list. |
void |
insert(Maplet<? extends java.lang.Integer,? extends V> entry)
Inserts the specified maplet into this list. |
void |
insert0(java.lang.Integer pos,
V value)
Inserts the specified value at the given position(zero based) in this list. |
void |
insert0(int pos,
V value)
Inserts the specified value at the given position(zero based) in this list. |
void |
insert0(Maplet<? extends java.lang.Integer,? extends V> entry)
Inserts the specified maplet into this list. |
void |
prefix(IList<? extends V> list)
Prefixes this list with the specified one. |
| Methods inherited from class org.millscript.commons.util.list.AbstractUList |
|---|
doUpdate, update, update, update, update0, update0, update0, updateAll |
| Methods inherited from class org.millscript.commons.util.list.AbstractIList |
|---|
allButFirst, allButLast, allFirst, allLast, contains, contains, contains, contains0, contains0, contains0, containsAll, containsKey, containsKey, containsKey0, containsKey0, containsSlice, containsSlice0, containsValue, decorate, doGet, doSlice, equals, first, get, get, get0, get0, getDefault, hashCode, indexOf0, isEmtpy, keyList, last, mapletList, setDefault, setDefault, sharedMapletList, sharedValueList, slice, slice0, toArray, toArray, toString, valueList |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.millscript.commons.util.EList |
|---|
addFirst, addLast, deleteAll, deleteFirst, deleteLast, deleteValue, insert |
| Methods inherited from interface org.millscript.commons.util.UList |
|---|
update, update, update, update0, update0, update0 |
| Methods inherited from interface org.millscript.commons.util.IList |
|---|
allButFirst, allButLast, allFirst, allLast, contains, contains, contains0, contains0, contains0, containsKey, containsKey, containsKey0, containsKey0, containsSlice, containsSlice0, first, get, get, get0, get0, getDefault, indexOf, indexOf0, iterator, last, setDefault, slice, slice0, toArray, toArray |
| Methods inherited from interface org.millscript.commons.util.IMap |
|---|
contains, containsAll, containsValue, equals, hashCode, isEmtpy, keyList, mapletList, setDefault, size, valueList |
| Methods inherited from interface org.millscript.commons.util.UMap |
|---|
updateAll |
| Methods inherited from interface org.millscript.commons.util.IMap |
|---|
contains, containsAll, containsValue, equals, hashCode, isEmtpy, keyList, mapletList, setDefault, size, valueList |
| Constructor Detail |
|---|
public AbstractEList()
| Method Detail |
|---|
public void append(IList<? extends V> list)
EList
append in interface EList<V>list - the list to append to this oneEList.append(org.millscript.commons.util.IList)
public void delete(int pos,
V value)
EList
delete in interface EList<V>pos - the index(one based) of the object to removevalue - the value which must match that stored at the specified
position(one based) in the listorg.millscript.commons.util.EList#delete(int, V)
public void delete(java.lang.Integer pos,
V value)
EList
delete in interface EList<V>pos - the index(one based) of the object to removevalue - the value which must match that stored at the specified
position(one based) in the listEList.delete(java.lang.Integer, java.lang.Object)public void delete(Maplet<? extends java.lang.Integer,? extends V> entry)
EList
delete in interface EList<V>entry - the maplet(one-based indexing) to remove from this listEList.delete(org.millscript.commons.util.Maplet)
public void delete0(int pos,
V value)
EList
delete0 in interface EList<V>pos - the index(zero based) of the object to removevalue - the value which must match that stored at the specified
position(zero based) in the listEList.delete0(int, java.lang.Object)
public void delete0(java.lang.Integer pos,
V value)
EList
delete0 in interface EList<V>pos - the index(zero based) of the object to removevalue - the value which must match that stored at the specified
position(zero based) in the listEList.delete0(java.lang.Integer, java.lang.Object)public void delete0(Maplet<? extends java.lang.Integer,? extends V> entry)
EList
delete0 in interface EList<V>entry - the maplet(zero-based indexing) to remove from this listEList.delete0(org.millscript.commons.util.Maplet)public void deleteAll(IList<? extends V> list)
EList
deleteAll in interface EList<V>list - the list whose values to remove from this listEList.deleteAll(org.millscript.commons.util.IList)public void deleteKey(int key)
EList
deleteKey in interface EList<V>key - the index(one based) of the value to removeEList.deleteKey(int)public void deleteKey(java.lang.Integer key)
EList
deleteKey in interface EList<V>key - the index(one based) of the value to removeEList.deleteKey(java.lang.Integer)public void deleteKey0(int key)
EList
deleteKey0 in interface EList<V>key - the index(one based) of the value to removeEList.deleteKey0(int)public void deleteKey0(java.lang.Integer key)
EList
deleteKey0 in interface EList<V>key - the index(one based) of the value to removeEList.deleteKey0(java.lang.Integer)
public void deleteSlice(int first,
int last)
EListfirst(one based, inclusive) and continuing
last(one based, inclusive), shifting any subsequent
elements to a lowest available index.
If the last index is less than the first, nothing will be removed.
deleteSlice in interface EList<V>first - the index(one based, inclusive) of the first element in the
slicelast - the index(one based, inclusive) of the last element in the
slice, must be equal to or greater than first for anything
to be removedEList.deleteSlice(int, int)
public void deleteSlice0(int first,
int last)
EListfirst(zero based, inclusive) and continuing
last(zero based, inclusive), shifting any subsequent
elements to a lowest available index.
If the last index is less than the first, nothing will be removed.
deleteSlice0 in interface EList<V>first - the index(zero based, inclusive) of the first element in
the slicelast - the index(zero based, inclusive) of the last element in the
slice, must be equal to or greater than first for anything
to be removedEList.deleteSlice0(int, int)
protected abstract void doDelete(int key,
V value)
doDelete(int, Object) method after the index has been
validated. Hence this method should generally not need to perform any
further validation.
pos - the index(one based) of the object to removevalue - the value which must match that stored at the specified
position(one based) in the listprotected abstract void doDeleteKey(int key)
doDeleteKey(int) method after the index
has been validated. Hence this method should generally not need to
perform any further validation.
key - the index(one based) of the value to remove
protected abstract void doRemoveSlice(int first,
int last)
first(one based, inclusive) and continuing
last(one based, inclusive). This method is called by the
generic deleteSlice(int, int) method after the index has been
validated. Hence this method should generally not need to perform any
further validation.
first - the index(one based) of the first element in the slicelast - the index(one based) of the last element in the slicepublic void insert(Maplet<? extends java.lang.Integer,? extends V> entry)
EList
insert in interface EList<V>entry - the maplet to insert into this listEList.insert(org.millscript.commons.util.Maplet)
public void insert(java.lang.Integer pos,
V value)
EList
insert in interface EList<V>pos - the position(one based) at which to insert the valuevalue - the value to insertEList.insert(java.lang.Integer, java.lang.Object)
public void insert0(int pos,
V value)
EList
insert0 in interface EList<V>pos - the position(zero based) at which to insert the valuevalue - the value to insertEList.insert0(int, java.lang.Object)
public void insert0(java.lang.Integer pos,
V value)
EList
insert0 in interface EList<V>pos - the position(zero based) at which to insert the valuevalue - the value to insertEList.insert0(java.lang.Integer, java.lang.Object)public void insert0(Maplet<? extends java.lang.Integer,? extends V> entry)
EList
insert0 in interface EList<V>entry - the maplet to insert into this listEList.insert0(org.millscript.commons.util.Maplet)public void prefix(IList<? extends V> list)
EList
prefix in interface EList<V>list - the list to prefix to this oneEList.prefix(org.millscript.commons.util.IList)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||