org.objectweb.jac.aspects.persistence
Class OID
java.lang.Object
|
+--org.objectweb.jac.aspects.persistence.OID
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- LongOID, StringOID
- public abstract class OID
- extends Object
- implements Serializable
Abstract class that defines an object identifier. It should be
subclassed by Storage
implementors.
Note that you should also define the hashCode
method.
- See Also:
- Serialized Form
Constructor Summary |
OID()
|
Method Summary |
abstract boolean |
equals(Object obj)
Test if two OIDs are equal. |
abstract int |
hashCode()
|
OID
public OID()
equals
public abstract boolean equals(Object obj)
- Test if two OIDs are equal.
- Overrides:
equals
in class Object
- Parameters:
obj
- the OID to test
- Returns:
- true if obj equals this OID
hashCode
public abstract int hashCode()
- Overrides:
hashCode
in class Object