org.sourceforge.jemm.client.id
Class TrackedID
java.lang.Object
org.sourceforge.jemm.types.ID
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
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TrackedID
protected TrackedID(ID id)
- Protected since this Object should only be created by
the TrackedIDFactory.
- Parameters:
id
-
toString
public java.lang.String toString()
- Overrides:
toString
in class ID
Copyright © 2009. All Rights Reserved.