Methods Summary |
---|
public void | clear()
throw new UnsupportedOperationException ();
|
public boolean | containsKey(java.lang.Object pKey)
return getValue (pKey) != null;
|
public boolean | containsValue(java.lang.Object pValue)
return getAsMap ().containsValue (pValue);
|
java.util.Map | convertToMap()Converts to a Map
Map ret = new HashMap ();
for (Enumeration e = enumerateKeys (); e.hasMoreElements (); ) {
Object key = e.nextElement ();
Object value = getValue (key);
ret.put (key, value);
}
return ret;
|
public java.util.Set | entrySet()
return getAsMap ().entrySet ();
|
public abstract java.util.Enumeration | enumerateKeys()Returns an enumeration of the keys
|
public java.lang.Object | get(java.lang.Object pKey)
return getValue (pKey);
|
public java.util.Map | getAsMap()Converts the MapSource to a Map. If the map is not mutable, this
is cached
if (mMap != null) {
return mMap;
}
else {
Map m = convertToMap ();
if (!isMutable ()) {
mMap = m;
}
return m;
}
|
public abstract java.lang.Object | getValue(java.lang.Object pKey)Returns the value associated with the given key, or null if not
found.
|
public boolean | isEmpty()
return !enumerateKeys ().hasMoreElements ();
|
public abstract boolean | isMutable()Returns true if it is possible for this data source to change
|
public java.util.Set | keySet()
return getAsMap ().keySet ();
|
public java.lang.Object | put(java.lang.Object pKey, java.lang.Object pValue)
throw new UnsupportedOperationException ();
|
public void | putAll(java.util.Map pMap)
throw new UnsupportedOperationException ();
|
public java.lang.Object | remove(java.lang.Object pKey)
throw new UnsupportedOperationException ();
|
public int | size()
return getAsMap ().size ();
|
public java.util.Collection | values()
return getAsMap ().values ();
|