org.sadun.util.pool2.test
Class PassivableObject

java.lang.Object
  extended byorg.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

Constructor Summary
PassivableObject()
           
 
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
 

Constructor Detail

PassivableObject

public PassivableObject()
Method Detail

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()