|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.commons.util.map.AbstractIMap<K,V>
org.millscript.commons.util.map.AbstractITreeMap<K,V,N>
public abstract class AbstractITreeMap<K,V,N extends ITreeMapNode<K,V>>
| Nested Class Summary | |
|---|---|
static class |
AbstractITreeMap.ITreeMapNodeIterator<K,V>
|
static class |
AbstractITreeMap.ITreeMapNodeKeyIterator<K>
|
static class |
AbstractITreeMap.ITreeMapNodeKeyList<K>
|
static class |
AbstractITreeMap.ITreeMapNodeList<V>
|
static class |
AbstractITreeMap.ITreeMapNodeListIterator<V>
|
static class |
AbstractITreeMap.ITreeMapNodeMapletIterator<K,V>
|
static class |
AbstractITreeMap.ITreeMapNodeMapletList<K,V>
|
static class |
AbstractITreeMap.ITreeMapNodeValueIterator<V>
|
static class |
AbstractITreeMap.ITreeMapNodeValueList<V>
|
| Constructor Summary | |
|---|---|
AbstractITreeMap()
|
|
AbstractITreeMap(IMapDefault<K,V> def)
|
|
| Method Summary | |
|---|---|
boolean |
contains(K key,
V value)
Returns true if this map contains a mapping from the
specified key to the specified value. |
boolean |
containsKey(K key)
Returns true if this map contains an entry for the
specified key. |
boolean |
containsValue(V value)
Returns true if this map contains an entry with the
specified value. |
V |
get(K key)
Returns the value associated with the specified key, or the default value if no such mapping exists. |
MapIterator<K,V> |
iterator(boolean share)
Returns an iterator over the mappings in this map. |
protected IList<K> |
sharedKeyList()
|
protected IList<Maplet<K,V>> |
sharedMapletList()
|
protected IList<V> |
sharedValueList()
|
int |
size()
Returns the number of mappings defined in this map. |
| Methods inherited from class org.millscript.commons.util.map.AbstractIMap |
|---|
contains, containsAll, decorate, equals, getDefault, hashCode, isEmtpy, keyList, mapletList, setDefault, 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.ITreeMap |
|---|
find, getComparator, getRootNode |
| Constructor Detail |
|---|
public AbstractITreeMap()
public AbstractITreeMap(IMapDefault<K,V> def)
def - | Method Detail |
|---|
public boolean contains(K key,
V value)
IMaptrue if this map contains a mapping from the
specified key to the specified value.
contains in interface IMap<K,V>key - the key whose presence to testvalue - the value which must match that stored against the
specified key
true if this map contains a mapping for the
specified key-value combinationorg.millscript.commons.util.IMap#contains(K, V)public boolean containsKey(K key)
IMaptrue if this map contains an entry for the
specified key.
containsKey in interface IMap<K,V>key - the key whose presence to test
true if this map contains a mapping for the
specified keyorg.millscript.commons.util.IMap#containsKey(K)public boolean containsValue(V value)
IMaptrue if this map contains an entry with the
specified value.
containsValue in interface IMap<K,V>value - the value whose presence to test
true if this map contains a mapping with the
specified valueorg.millscript.commons.util.IMap#containsValue(V)public V get(K key)
IMap
get in interface IMap<K,V>key - the key whose associated value to return
org.millscript.commons.util.IMap#get(K)public MapIterator<K,V> iterator(boolean share)
IMap
iterator in interface IMap<K,V>share - if true this instances backing store should be
shared with the returned list, otherwise any backing store will be copied.
IMap.iterator(boolean)protected IList<K> sharedKeyList()
sharedKeyList in class AbstractIMap<K,V>AbstractIMap.sharedKeyList()protected IList<Maplet<K,V>> sharedMapletList()
sharedMapletList in class AbstractIMap<K,V>AbstractIMap.sharedMapletList()protected IList<V> sharedValueList()
sharedValueList in class AbstractIMap<K,V>AbstractIMap.sharedValueList()public int size()
IMap
size in interface IMap<K,V>IMap.size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||