org.apache.pluto.portalImpl.util
Class ObjectID

java.lang.Object
  extended by org.apache.pluto.portalImpl.util.ObjectID
All Implemented Interfaces:
java.io.Serializable

public class ObjectID
extends java.lang.Object
implements java.io.Serializable

Wraps around the internal Object IDs. By holding both the string and the integer version of an Object ID this class helps speed up the internal processing.

See Also:
Serialized Form

Field Summary
private  int intOID
           
private  java.lang.String stringOID
           
 
Constructor Summary
private ObjectID(int oid, java.lang.String stringOID)
           
 
Method Summary
static ObjectID createFromString(java.lang.String idStr)
           
 boolean equals(java.lang.Object object)
           
 int hashCode()
           
 int intValue()
           
private  void readObject(java.io.ObjectInputStream stream)
           
 java.lang.String toString()
           
private  void writeObject(java.io.ObjectOutputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

stringOID

private java.lang.String stringOID

intOID

private int intOID
Constructor Detail

ObjectID

private ObjectID(int oid,
                 java.lang.String stringOID)
Method Detail

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
Throws:
java.io.IOException

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

intValue

public int intValue()

createFromString

public static ObjectID createFromString(java.lang.String idStr)