|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.versionone.om.AssetID
public class AssetID
Represents a unique ID in the VersionOne system. The ToToken and FromToken methods are provided to convert an AssetID to and from a string for storage.
| Constructor Summary | |
|---|---|
AssetID(java.lang.String token)
Construct an AssetID by ID. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares this AssetID with the specified object. |
static AssetID |
fromToken(java.lang.String token)
Create an AssetID form a tokenized ID. |
java.lang.String |
getToken()
|
int |
hashCode()
To calculate hashCode used token |
java.lang.String |
toString()
Tokenize the ID. |
static AssetID |
valueOf(java.lang.String idString)
Convert a string to an AssetID. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AssetID(java.lang.String token)
token - id of the Asset.| Method Detail |
|---|
public java.lang.String getToken()
public static AssetID fromToken(java.lang.String token)
token - String representation of the AssetID.
idStringpublic boolean equals(java.lang.Object obj)
AssetID with the specified object. The result is
true if and only if the argument is not null and is an
AssetID with the same token.
equals in class java.lang.Objectobj - The object to compare this AssetID against.
true if the given object represents the same
AssetID on the server, false otherwise.public int hashCode()
token
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static AssetID valueOf(java.lang.String idString)
idString - The tokenized ID.
idString.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||