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 String
myVatID
The vat this ID is relative to (i.e., the vat that created this ID).
Fields inherited from interface org.erights.e.elib.serial.Persistent
Fields inherited from interface org.erights.e.elib.serial.DeepPassByCopy
Constructor Summary
Method Summary
boolean
equals(Object obj)
Suppressed: Two ObjectIDs are equal if the vatIDs and SwissHashes are both equal
Methods inherited from class java.lang.Object
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.