JAC project
AOPSYS
CEDRIC & LIP6 labs

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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OID

public OID()
Method Detail

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

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli