Package org.tigris.subversion.javahl
Class RevisionRange
java.lang.Object
org.tigris.subversion.javahl.RevisionRange
- All Implemented Interfaces:
Serializable
,Comparable
public class RevisionRange extends Object implements Comparable, Serializable
Object that describes a revision range
- Since:
- 1.5
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description RevisionRange(String revisionElement)
Accepts a string in one of these forms: n m-n Parses the results into a from and to revisionRevisionRange(RevisionRange aRange)
RevisionRange(Revision from, Revision to)
-
Method Summary
Modifier and Type Method Description int
compareTo(Object range)
boolean
equals(Object range)
Revision
getFromRevision()
static Long
getRevisionAsLong(Revision rev)
Revision
getToRevision()
int
hashCode()
RevisionRange
toApache()
String
toString()
-
Constructor Details
-
RevisionRange
-
RevisionRange
-
RevisionRange
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
-
toApache
-
getFromRevision
-
getToRevision
-
toString
-
getRevisionAsLong
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable
- Parameters:
range
- The RevisionRange to compare this object to.
-