ProcessMappublic class ProcessMap extends Object
Fields Summary |
---|
final HashMap | mMap |
Methods Summary |
---|
public E | get(java.lang.String name, int uid)
SparseArray<E> uids = mMap.get(name);
if (uids == null) return null;
return uids.get(uid);
| public java.util.HashMap | getMap()
return mMap;
| public E | put(java.lang.String name, int uid, E value)
SparseArray<E> uids = mMap.get(name);
if (uids == null) {
uids = new SparseArray<E>(2);
mMap.put(name, uids);
}
uids.put(uid, value);
return value;
| public void | remove(java.lang.String name, int uid)
SparseArray<E> uids = mMap.get(name);
if (uids != null) {
uids.remove(uid);
if (uids.size() == 0) {
mMap.remove(name);
}
}
|
|