Class SVNRevisionRange
java.lang.Object
org.tigris.subversion.svnclientadapter.SVNRevisionRange
- All Implemented Interfaces:
Serializable
,Comparable
Object that describes a revision range
copied from JavaHL implementation
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSVNRevisionRange
(String revisionElement) Accepts a string in one of these forms: n m-n Parses the results into a from and to revisionSVNRevisionRange
(SVNRevision.Number from, SVNRevision.Number to, boolean convertToNMinusOne) SVNRevisionRange
(SVNRevision from, SVNRevision to) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
contains
(SVNRevision revision, boolean inclusiveFromRev) Returns boolean whether revision is contained in the rangeboolean
static Long
static SVNRevisionRange[]
getRevisions
(SVNRevision.Number[] selectedRevisions, SVNRevision.Number[] allRevisions) int
hashCode()
toString()
-
Constructor Details
-
SVNRevisionRange
-
SVNRevisionRange
-
SVNRevisionRange
Accepts a string in one of these forms: n m-n Parses the results into a from and to revision- Parameters:
revisionElement
- revision range or single revision
-
-
Method Details
-
getFromRevision
-
getToRevision
-
toString
-
getRevisionAsLong
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable
- Parameters:
range
- The RevisionRange to compare this object to.
-
getRevisions
public static SVNRevisionRange[] getRevisions(SVNRevision.Number[] selectedRevisions, SVNRevision.Number[] allRevisions) -
contains
Returns boolean whether revision is contained in the range- Parameters:
revision
-inclusiveFromRev
- - include an exact match of from revision- Returns:
-
toMergeString
-