|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.RevisionID
A simple class representing a unique revision of an Item in the repository. For items of the same type revisions can be uniquely int a repository byte the item's objectID and revision number.
Item,
Type,
Item.getObjectID(),
Item.getRevisionNumber()| Constructor Summary | |
RevisionID(int objectID,
int revision)
Create a new RevisionID based on the specified object ID and revision number. |
|
| Method Summary | |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
int |
getObjectID()
Returns the revision identifier's object ID. |
int |
getRevision()
Returns the revision identifier's revision number. |
int |
hashCode()
returns a unique hash for all instances of this type |
boolean |
isTip()
Return true if the revision identifier represents the "tip" revision of a branch. |
void |
setObjectID(int objectID)
Sets the revision idenitifier's object ID. |
void |
setRevision(int revision)
Sets the revision idenitifier's revision number. |
java.lang.String |
toString()
Returns a string representation of the revision identifier. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RevisionID(int objectID,
int revision)
objectID - the revision identifier's object IDrevision - the revision identifier's revision numberItem.getObjectID(),
Item.getRevisionNumber()| Method Detail |
public int getObjectID()
public void setObjectID(int objectID)
objectID - the revision identifier's object ID.public int getRevision()
public void setRevision(int revision)
public boolean isTip()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||