| java.lang.Object org.mozilla.javascript.ObjToIntMap
ObjToIntMap | public class ObjToIntMap implements Serializable(Code) | | Map to associate objects to integers.
The map does not synchronize any of its operation, so either use
it from a single thread or do own synchronization or perform all mutation
operations on one thread before passing the map to others
author: Igor Bukanov |
Inner Class :public static class Iterator | |
serialVersionUID | final static long serialVersionUID(Code) | | |
ObjToIntMap | public ObjToIntMap()(Code) | | |
ObjToIntMap | public ObjToIntMap(int keyCountHint)(Code) | | |
clear | public void clear()(Code) | | |
get | public int get(Object key, int defaultValue)(Code) | | Get integer value assigned with key.
key integer value or defaultValue if key is absent |
getExisting | public int getExisting(Object key)(Code) | | Get integer value assigned with key.
key integer value throws: RuntimeException - if key does not exist |
getKeys | public Object[] getKeys()(Code) | | Return array of present keys
|
getKeys | public void getKeys(Object[] array, int offset)(Code) | | |
initIterator | final void initIterator(Iterator i)(Code) | | |
intern | public Object intern(Object keyArg)(Code) | | If table already contains a key that equals to keyArg, return that key
while setting its value to zero, otherwise add keyArg with 0 value to
the table and return it.
|
isEmpty | public boolean isEmpty()(Code) | | |
newIterator | public Iterator newIterator()(Code) | | |
|
|