uka.util
Class IntSparseIDMap
java.lang.Object
uka.util.IDConstants
uka.util.IntSparseIDMap
- All Implemented Interfaces:
- Printable, java.io.Serializable
- public class IntSparseIDMap
- extends IDConstants
- implements java.io.Serializable, Printable
- Author:
- Bernhard Haumacher
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
space
IDSpace space
bijection
IntIntHashBijection bijection
IntSparseIDMap
public IntSparseIDMap(IDSpace space)
createBijection
protected IntIntHashBijection createBijection()
getSize
public int getSize()
clear
public void clear()
getID
public int getID(int obj)
findID
public int findID(int obj)
dump
public void dump()
remove
public void remove(int id)
setObject
public void setObject(int id,
int obj)
resetObject
public void resetObject(int id,
int obj)
isUsed
public final boolean isUsed(int id)
getObject
public int getObject(int id)
appendTo
public void appendTo(ToString s)
- Description copied from interface:
Printable
- This method should
append the contents of each instance variable of the current
object to the given ToString object. The appended data
should be labeled with the name of the corresponding instance
variable.
- Specified by:
appendTo in interface Printable
- See Also:
ToString,
ToString.append(String, Object),
ToString.append(String, boolean),
ToString.append(String, byte),
ToString.append(String, int)