org.sadun.util.pool2.test
Class PassivableObject
java.lang.Object
org.sadun.util.pool2.test.PassivableObject
- All Implemented Interfaces:
- ObjectWithID, java.io.Serializable
- public class PassivableObject
- extends java.lang.Object
- implements java.io.Serializable, ObjectWithID
A simple passivatable object for test purposes.
Each instances is automatically associated at construction an incremental id,
unique within the JVM.
- Author:
- cris
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getId()
Returns the id. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PassivableObject
public PassivableObject()
getId
public java.lang.String getId()
- Returns the id.
- Specified by:
getId
in interface ObjectWithID
- Returns:
- String
toString
public java.lang.String toString()
- See Also:
Object.toString()