edu.cornell.cs.sam.utils
Class RegistrationSystem

java.lang.Object
  extended by edu.cornell.cs.sam.utils.RegistrationSystem

public class RegistrationSystem
extends java.lang.Object


Constructor Summary
RegistrationSystem()
           
 
Method Summary
static java.lang.Object getElement(int classID)
           
static java.util.Collection<?> getElements(int classID)
           
static int getNextUID()
           
static
<T> void
register(int classID, T obj)
           
static void unregister(int classID)
           
static void unregister(int classID, java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistrationSystem

public RegistrationSystem()
Method Detail

register

public static <T> void register(int classID,
                                T obj)

unregister

public static void unregister(int classID,
                              java.lang.Object obj)

unregister

public static void unregister(int classID)

getElements

public static java.util.Collection<?> getElements(int classID)

getElement

public static java.lang.Object getElement(int classID)

getNextUID

public static int getNextUID()