public class ObjToIntMap
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ObjToIntMap.Iterator |
Constructor and Description |
---|
ObjToIntMap() |
ObjToIntMap(int keyCountHint) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
get(java.lang.Object key,
int defaultValue)
Get integer value assigned with key.
|
int |
getExisting(java.lang.Object key)
Get integer value assigned with key.
|
java.lang.Object[] |
getKeys()
Return array of present keys
|
void |
getKeys(java.lang.Object[] array,
int offset) |
boolean |
has(java.lang.Object key) |
java.lang.Object |
intern(java.lang.Object keyArg)
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.
|
boolean |
isEmpty() |
ObjToIntMap.Iterator |
newIterator() |
void |
put(java.lang.Object key,
int value) |
void |
remove(java.lang.Object key) |
int |
size() |
public ObjToIntMap()
public ObjToIntMap(int keyCountHint)
public boolean isEmpty()
public int size()
public boolean has(java.lang.Object key)
public int get(java.lang.Object key, int defaultValue)
public int getExisting(java.lang.Object key)
java.lang.RuntimeException
- if key does not existpublic void put(java.lang.Object key, int value)
public java.lang.Object intern(java.lang.Object keyArg)
public void remove(java.lang.Object key)
public void clear()
public ObjToIntMap.Iterator newIterator()
public java.lang.Object[] getKeys()
public void getKeys(java.lang.Object[] array, int offset)
Copyright © 2010 - 2020 Adobe. All Rights Reserved