|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EMap<K,V>
This interface describes an extensible map, one which can have mappings inserted, removed and changed.
| Method Summary | |
|---|---|
void |
insert(K key,
V value)
Inserts the specified key-value pair into this map, associating the key with the value. |
void |
insert(Maplet<? extends K,? extends V> entry)
Inserts the specified mapping into this map, associating the maplets key with its value. |
void |
insertAll(IMap<? extends K,? extends V> map)
Inserts all the mappings from the specified map into this map. |
void |
remove(K key,
V value)
Removes the specified key-value pair from this map. |
void |
remove(Maplet<? extends K,? extends V> entry)
Removes the specified mapping from this map. |
void |
removeAll()
Removes all the mappings from this map. |
void |
removeAll(IMap<? extends K,? extends V> map)
Removes all the mappings in the specified map from this one. |
void |
removeKey(K key)
Removes the mapping for the specified key. |
void |
removeValue(V value)
Removes any mappings from this map which map to the specified value. |
| Methods inherited from interface org.millscript.commons.util.UMap |
|---|
update, update, updateAll |
| Methods inherited from interface org.millscript.commons.util.IMap |
|---|
contains, contains, containsAll, containsKey, containsValue, equals, get, getDefault, hashCode, isEmtpy, iterator, keyList, mapletList, setDefault, size, valueList |
| Method Detail |
|---|
void insert(Maplet<? extends K,? extends V> entry)
entry - the maplet to insert into this map
void insert(K key,
V value)
key - the key to associate the value withvalue - the value to associate the key withvoid insertAll(IMap<? extends K,? extends V> map)
map - the map to copy all mappings fromvoid remove(Maplet<? extends K,? extends V> entry)
entry - the maplet to remove from this map
void remove(K key,
V value)
key - the key to remove from this map if it is associated with
the specified valuevalue - the value to remove from this map if it is associated with
the specified keyvoid removeAll()
void removeAll(IMap<? extends K,? extends V> map)
map - the map whose mappings to remove from this mapvoid removeKey(K key)
key - the key to remove from this mapvoid removeValue(V value)
value - the value to remove from this map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||