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 intcompareTo(Object range)booleanequals(Object range)RevisiongetFromRevision()static LonggetRevisionAsLong(Revision rev)RevisiongetToRevision()inthashCode()RevisionRangetoApache()StringtoString()
-
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:
compareToin interfaceComparable- Parameters:
range- The RevisionRange to compare this object to.
-