org.objectweb.jac.aspects.persistence
Class LongOID

java.lang.Object
  |
  +--org.objectweb.jac.aspects.persistence.OID
        |
        +--org.objectweb.jac.aspects.persistence.LongOID
All Implemented Interfaces:
Serializable

public class LongOID
extends OID

An implementation of OID with a long

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jac.aspects.persistence.OID
storage
 
Constructor Summary
LongOID(Storage storage, long oid)
           
 
Method Summary
 boolean equals(Object obj)
          Test if two OIDs are equal.
 long getOID()
           
 int hashCode()
           
 String localId()
           
 String toString()
           
 
Methods inherited from class org.objectweb.jac.aspects.persistence.OID
getStorage
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongOID

public LongOID(Storage storage,
               long oid)
Method Detail

getOID

public long getOID()

localId

public String localId()
Specified by:
localId in class OID

equals

public boolean equals(Object obj)
Description copied from class: OID
Test if two OIDs are equal.

Specified by:
equals in class OID
Parameters:
obj - the OID to test
Returns:
true if obj equals this OID

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Specified by:
hashCode in class OID