|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.cog.abstraction.impl.common.IdentityImpl
An implementation of the Identity interface. It
calculates a unique value for this Identityby
assigning it the value of a static counter that was initialized by
the current time of day in milliseconds.
| Constructor Summary | |
IdentityImpl()
The default constructor. |
|
IdentityImpl(Identity identity)
Makes a shallow copy of the given Identity. |
|
IdentityImpl(String namespace)
Instantiates an Identity with the given namespace. |
|
| Method Summary | |
boolean |
equals(Identity id)
Compares this Identity. |
boolean |
equals(Object object)
|
String |
getNameSpace()
Returns the namespace for this Identity. |
long |
getValue()
Returns the value for this Identity. |
int |
hashCode()
|
void |
setNameSpace(String namespace)
Sets the namespace for this Identity. |
void |
setValue(long value)
Sets the value for this Identity. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public IdentityImpl()
cog.
public IdentityImpl(String namespace)
Identity with the given namespace.
public IdentityImpl(Identity identity)
Identity. Instantiates an Identity by
copying the namespace and value from the given
Identity.
| Method Detail |
public void setNameSpace(String namespace)
IdentityIdentity.
setNameSpace in interface Identitynamespace - a string representing the namespace for this
Identity.public String getNameSpace()
IdentityIdentity.
getNameSpace in interface IdentityIdentitypublic void setValue(long value)
IdentityIdentity.
setValue in interface Identityvalue - a numeric value representing the namespace for this
Identity.public long getValue()
IdentityIdentity.
getValue in interface IdentityIdentitypublic boolean equals(Identity id)
IdentityIdentity.
equals in interface Identitypublic boolean equals(Object object)
public int hashCode()
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||