uka.util
Class GCPartitionedIDSpace

java.lang.Object
  extended byuka.util.SparseIDSpace
      extended byuka.util.PartitionedIDSpace
          extended byuka.util.GCPartitionedIDSpace
All Implemented Interfaces:
IDSpace, java.io.Serializable

public class GCPartitionedIDSpace
extends PartitionedIDSpace

See Also:
Serialized Form

Field Summary
private  IntQueue freeIDs
           
 
Fields inherited from class uka.util.PartitionedIDSpace
 
Fields inherited from class uka.util.SparseIDSpace
nextID, usedIDs
 
Constructor Summary
GCPartitionedIDSpace(int size)
           
 
Method Summary
 void clear()
           
 int create()
           
 void free(int id)
           
private  void initTransient()
           
private  void readObject(java.io.ObjectInputStream in)
           
private  void restoreAfterUnmarshal()
           
 
Methods inherited from class uka.util.PartitionedIDSpace
create, init
 
Methods inherited from class uka.util.SparseIDSpace
getUsedIDs, isUsed, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

freeIDs

private transient IntQueue freeIDs
Constructor Detail

GCPartitionedIDSpace

public GCPartitionedIDSpace(int size)
Method Detail

initTransient

private void initTransient()

create

public int create()
Specified by:
create in interface IDSpace
Overrides:
create in class PartitionedIDSpace

free

public void free(int id)

clear

public void clear()
Specified by:
clear in interface IDSpace
Overrides:
clear in class PartitionedIDSpace

restoreAfterUnmarshal

private void restoreAfterUnmarshal()
                            throws java.lang.ClassNotFoundException,
                                   java.io.IOException
Throws:
java.lang.ClassNotFoundException
java.io.IOException

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException