org.sourceforge.jemm.client.id
Class TrackedID

java.lang.Object
  extended by org.sourceforge.jemm.types.ID
      extended by org.sourceforge.jemm.client.id.TrackedID
All Implemented Interfaces:
java.io.Serializable

public class TrackedID
extends ID

An ID which must be created via the TrackedIDFactory and implements the Flyweight pattern, ensuring that TrackedIDs with the same number are always the same object. Do not keep a reference to one of these objects in client code as the Weak reference availability of a TrackedID is used to tell the garbage collector on the server that this ID is no longer being used by the client.

Author:
Paul Keeble
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.sourceforge.jemm.types.ID
idValue
 
Constructor Summary
protected TrackedID(ID id)
          Protected since this Object should only be created by the TrackedIDFactory.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class org.sourceforge.jemm.types.ID
equals, getIDValue, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrackedID

protected TrackedID(ID id)
Protected since this Object should only be created by the TrackedIDFactory.

Parameters:
id -
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class ID


Copyright © 2009. All Rights Reserved.