jxtaimpl.ids
Class GenericId
java.lang.Object
|
+--jxtaimpl.ids.GenericId
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- AntId, RequestId
- public class GenericId
- extends Object
- implements Serializable
This class generates a new identifier shaped as a String taking, as input value, the object to identify.
The id could be obtained invoking the getId method.
- Author:
- Francesco Russo (frusso@cs.unibo.it)
- See Also:
- Serialized Form
Method Summary |
String |
getId()
This method returns the ID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericId
public GenericId(Object obj)
- The constructor
- Parameters:
obj
- The object to be identified
getId
public String getId()
- This method returns the ID