|
||||||||||
| 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>
public abstract class AbstractUList<V>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.millscript.commons.util.list.AbstractIList |
|---|
AbstractIList.ListMapletIterator<V>, AbstractIList.ListMapletList<V> |
| Constructor Summary | |
|---|---|
AbstractUList()
|
|
| Method Summary | |
|---|---|
protected abstract void |
doUpdate(int key,
V value)
Updates the value at the specified index(one based) with that specified. |
void |
update(java.lang.Integer key,
V value)
Updates the value at the specified index(one based) with that specified. |
void |
update(int key,
V value)
Updates the value at the specified index(one based) with that specified. |
void |
update(Maplet<? extends java.lang.Integer,? extends V> entry)
Updates this list using the specified mapping, changing the value at the index represeted by the maplets key(one based) to the maplets value. |
void |
update0(java.lang.Integer key,
V value)
Updates the value at the specified index(zero based) with that specified. |
void |
update0(int key,
V value)
Updates the value at the specified index(zero based) with that specified. |
void |
update0(Maplet<? extends java.lang.Integer,? extends V> entry)
Updates this list using the specified mapping, changing the value at the index represeted by the maplets key(zero based) to the maplets value. |
void |
updateAll(IMap<? extends java.lang.Integer,? extends V> map)
Updates all the mappings in this map with those in the specified map. |
| 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.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.IMap |
|---|
contains, containsAll, containsValue, equals, hashCode, isEmtpy, keyList, mapletList, setDefault, size, valueList |
| Constructor Detail |
|---|
public AbstractUList()
| Method Detail |
|---|
protected abstract void doUpdate(int key,
V value)
update(int, Object) 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 updatevalue - the new value for the specified index
public void update(int key,
V value)
UList
update in interface UList<V>key - the index(one based) of the value to updatevalue - the new value for the elementUList.update(int, java.lang.Object)
public void update(java.lang.Integer key,
V value)
UList
update in interface UList<V>update in interface UMap<java.lang.Integer,V>key - the index(one based) of the value to updatevalue - the new value for the elementUList.update(java.lang.Integer, java.lang.Object)public void update(Maplet<? extends java.lang.Integer,? extends V> entry)
UListThis is generally equivalent to the following code, but may be more efficient in some implementations:
someUMap.update( entry.getKey(), entry.getValue() );
update in interface UList<V>update in interface UMap<java.lang.Integer,V>entry - the maplet to update this list withUMap.update(org.millscript.commons.util.Maplet)
public void update0(int key,
V value)
UList
update0 in interface UList<V>key - the index(zero based) of the value to updatevalue - the new value for the elementUList.update0(int, java.lang.Object)
public void update0(java.lang.Integer key,
V value)
UList
update0 in interface UList<V>key - the index(zero based) of the value to updatevalue - the new value for the elementUList.update0(java.lang.Integer, java.lang.Object)public void update0(Maplet<? extends java.lang.Integer,? extends V> entry)
UListThis is generally equivalent to the following code, but may be more efficient in some implementations:
someUMap.update0( entry.getKey(), entry.getValue() );
update0 in interface UList<V>entry - the maplet to update this list withUList.update0(org.millscript.commons.util.Maplet)public void updateAll(IMap<? extends java.lang.Integer,? extends V> map)
UMap
updateAll in interface UMap<java.lang.Integer,V>map - the map to copy all mappings fromUMap.updateAll(org.millscript.commons.util.IMap)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||