net.captp.jcomm
Class ObjectID

java.lang.Object
  |
  +--net.captp.jcomm.ObjectID
All Implemented Interfaces:
DeepPassByCopy, Marker, PassByConstruction, Persistent, Selfless, Serializable

public class ObjectID
extends Object
implements Persistent, DeepPassByCopy

Untamed: A pairing of a VatID and a SwissHash, uniquely identifying a Selfish object without providing access to the object.

Author:
Chip Morningstar, Mark Miller
See Also:
Serialized Form

Field Summary
private  BigInteger mySwissHash
          The object's identity, relative to that vat
private  String myVatID
          The vat this ID is relative to (i.e., the vat that created this ID).
static StaticMaker ObjectIDMaker
          Enabled:
private static long serialVersionUID
           
 
Fields inherited from interface org.erights.e.elib.serial.Persistent
HONORARY, HONORED_NAMES
 
Fields inherited from interface org.erights.e.elib.serial.DeepPassByCopy
HONORARY, HONORED_NAMES
 
Constructor Summary
ObjectID(String vatID, BigInteger swissHash)
          Enabled: Construct an object identifier given the SwissHash directly
 
Method Summary
 boolean equals(Object obj)
          Suppressed: Two ObjectIDs are equal if the vatIDs and SwissHashes are both equal
 Object[] getSpreadUncall()
          Enabled:
 BigInteger getSwissHash()
          Enabled: Return the Swiss number
 String getVatID()
          Enabled: Return the vat ID
 int hashCode()
          Suppressed:
 String toString()
          Suppressed:
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID

ObjectIDMaker

public static final StaticMaker ObjectIDMaker
Enabled:


myVatID

private final String myVatID
The vat this ID is relative to (i.e., the vat that created this ID).


mySwissHash

private final BigInteger mySwissHash
The object's identity, relative to that vat

Constructor Detail

ObjectID

public ObjectID(String vatID,
                BigInteger swissHash)
Enabled: Construct an object identifier given the SwissHash directly

Method Detail

getSpreadUncall

public Object[] getSpreadUncall()
Enabled:

Specified by:
getSpreadUncall in interface Selfless

equals

public boolean equals(Object obj)
Suppressed: Two ObjectIDs are equal if the vatIDs and SwissHashes are both equal

Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Object.hashCode(), java.util.Hashtable

hashCode

public int hashCode()
Suppressed:

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.
See Also:
java.lang.Object#equals(java.lang.Object), java.util.Hashtable

getVatID

public String getVatID()
Enabled: Return the vat ID


getSwissHash

public BigInteger getSwissHash()
Enabled: Return the Swiss number


toString

public String toString()
Suppressed:

Overrides:
toString in class Object
Returns:
a string representation of the object.


comments?