|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.util.DotNotation
public class DotNotation
Represents a DotNotation (e.g., 1.25.1.0).
| Constructor Summary | |
|---|---|
DotNotation(DotNotation n)
Constructs a new DotNotation that is a copy of another one. |
|
DotNotation(java.lang.String s)
Constructs a new DotNotation. |
|
| Method Summary | |
|---|---|
static int |
compare(DotNotation n1,
DotNotation n2)
Compares two DotNotations. |
int |
compareTo(DotNotation n)
Compares this DotNotation to another one. |
boolean |
equals(java.lang.Object object)
Determines whether or not this DotNotation is equal to another one. |
int |
getBranchRevision()
Gets the revision number of this DotNotation within its branch. |
DotNotation |
getBranchRoot()
Gets the DotNotation representing the root of this branch. |
DotNotation |
getCommonAncestor(DotNotation other)
Determines the common ancestor between this DotNotation and another one. |
int |
getHistoryLength()
Determines how many total revision would be in the history of an artifact with this DotNotation. |
DotNotation |
getNext()
Gets the next DotNotation in this branch. |
DotNotation |
getParent()
Gets the parent branch point of this DotNotation, or null if this DotNotation is not a branched DotNotation. |
DotNotation |
getPrevious()
Gets the previous DotNotation in this one's revision history, or null if this is the first revision in the history. |
int |
hashCode()
Gets a hash code for this DotNotation. |
boolean |
isAncestorOf(DotNotation other)
Determines whether or not this DotNotation is an ancestor of the given one. |
boolean |
isBranched()
Determines whether or not this is a branched DotNotation. |
boolean |
isOnSameBranchAs(DotNotation other)
Determines whether or not this DotNotation is on the same branch as another one. |
java.lang.String |
toString()
Converts this DotNotation to string format. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DotNotation(java.lang.String s)
s - A DotNotation in string form (e.g., "1.25.1.0").public DotNotation(DotNotation n)
n - The DotNotation to be copied.| Method Detail |
|---|
public DotNotation getBranchRoot()
public int getBranchRevision()
public boolean isBranched()
public DotNotation getParent()
DotNotation.isBranched()public int getHistoryLength()
public DotNotation getNext()
public DotNotation getPrevious()
public boolean isOnSameBranchAs(DotNotation other)
other - The DotNotation to be compared.
public boolean isAncestorOf(DotNotation other)
other - The DotNotation to be compared.
public DotNotation getCommonAncestor(DotNotation other)
other - The DotNotation to be compared.
public int compareTo(DotNotation n)
n - The DotNotation to be compared.
public static int compare(DotNotation n1,
DotNotation n2)
n1 - The first DotNotation to be compared.n2 - The second DotNotation to be compared.
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - The object to be compared.
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 | ||||||||