|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnet.sourceforge.pain.db.DbCollection
net.sourceforge.pain.db.DbAbstractStringMap
net.sourceforge.pain.db.DbStringMap
This class implements the Map interface. Only not null String keys and values supported.
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Constructor Summary | |
DbStringMap(DbObject owner,
int fid)
|
|
DbStringMap(DbObject owner,
java.lang.String[] image,
int fid)
|
|
| Method Summary | |
void |
clear()
Removes all mappings from this map (optional operation). |
boolean |
containsKey(java.lang.Object key)
Returns true if this map contains a mapping for the specified key. |
boolean |
containsValue(java.lang.Object value)
Returns true if this map maps one or more keys to the specified value. |
java.util.Set |
entrySet()
Returns a set view of the mappings contained in this map. |
java.lang.Object |
get(java.lang.Object key)
Returns the value to which this map maps the specified key. |
boolean |
isEmpty()
Returns true if this map contains no key-value mappings. |
java.util.Set |
keySet()
Returns a set view of the keys contained in this map. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Associates the specified value with the specified key in this map (optional operation). |
void |
putAll(java.util.Map t)
Copies all of the mappings from the specified map to this map (optional operation). |
java.lang.Object |
remove(java.lang.Object key)
Removes the mapping for this key from this map if it is present (optional operation). |
int |
size()
Returns the number of key-value mappings in this map. |
java.util.Collection |
values()
Returns a collection view of the values contained in this map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
| Constructor Detail |
public DbStringMap(DbObject owner,
java.lang.String[] image,
int fid)
public DbStringMap(DbObject owner,
int fid)
| Method Detail |
public int size()
java.util.Map
size in interface java.util.Mappublic void clear()
java.util.Map
clear in interface java.util.Mappublic boolean isEmpty()
java.util.Map
isEmpty in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
java.util.Map
containsKey in interface java.util.Mapkey - key whose presence in this map is to be tested.
public boolean containsValue(java.lang.Object value)
java.util.Map
containsValue in interface java.util.Mapvalue - value whose presence in this map is to be tested.
public java.util.Collection values()
java.util.Map
values in interface java.util.Mappublic void putAll(java.util.Map t)
java.util.Mapput(k, v) on this map once
for each mapping from key k to value v in the
specified map. The behavior of this operation is unspecified if the
specified map is modified while the operation is in progress.
putAll in interface java.util.Mapt - Mappings to be stored in this map.public java.util.Set entrySet()
java.util.MapMap.Entry. The set is backed by the
map, so changes to the map are reflected in the set, and vice-versa.
If the map is modified while an iteration over the set is in progress,
the results of the iteration are undefined. The set supports element
removal, which removes the corresponding mapping from the map, via the
Iterator.remove, Set.remove, removeAll,
retainAll and clear operations. It does not support
the add or addAll operations.
entrySet in interface java.util.Mappublic java.util.Set keySet()
java.util.Map
keySet in interface java.util.Mappublic java.lang.Object get(java.lang.Object key)
java.util.MapMore formally, if this map contains a mapping from a key k to a value v such that (key==null ? k==null : key.equals(k)), then this method returns v; otherwise it returns null. (There can be at most one such mapping.)
get in interface java.util.Mapkey - key whose associated value is to be returned.
Map.containsKey(Object)public java.lang.Object remove(java.lang.Object key)
java.util.Map(key==null ? k==null : key.equals(k)), that mapping
is removed. (The map can contain at most one such mapping.)
Returns the value to which the map previously associated the key, or null if the map contained no mapping for this key. (A null return can also indicate that the map previously associated null with the specified key if the implementation supports null values.) The map will not contain a mapping for the specified key once the call returns.
remove in interface java.util.Mapkey - key whose mapping is to be removed from the map.
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
java.util.Mapm.containsKey(k) would return
true.))
put in interface java.util.Mapkey - key with which the specified value is to be associated.value - value to be associated with the specified key.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||