com.starteam
Class MergePoint.Revision

java.lang.Object
  extended by com.starteam.MergePoint.Revision
Enclosing class:
MergePoint

public static final class MergePoint.Revision
extends java.lang.Object

A simple class representing a unique revision of an Item in the repository. For items of the same type, revisions can be uniquely identified in the repository by the item's objectID and revision number.

See Also:
Item, Type, TypedResource.getObjectID(), VersionedObject.getRevisionNumber()

Method Summary
 int getObjectID()
          Returns the revision identifier's object ID.
 int getRevisionNumber()
          Returns the revision identifier's revision number.
 boolean isTip()
          Return true if the revision identifier represents the "tip" revision of a branch.
 java.lang.String toString()
          Returns a string representation of the revision identifier.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getObjectID

public int getObjectID()
Returns the revision identifier's object ID.

Returns:
the revision identifier's object ID.

getRevisionNumber

public int getRevisionNumber()
Returns the revision identifier's revision number.

Returns:
the revision identifier's revision number.

isTip

public boolean isTip()
Return true if the revision identifier represents the "tip" revision of a branch. This is defined as a revision number equal to -1.

Returns:
true if the revision identifier represents the "tip" revision of a branch.

toString

public java.lang.String toString()
Returns a string representation of the revision identifier.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the revision identifier.


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.