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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object range)booleanequals(Object range)RevisiongetFromRevision()static LonggetRevisionAsLong(Revision rev)RevisiongetToRevision()inthashCode()RevisionRangetoApache()StringtoString()
-
-
-
Constructor Detail
-
RevisionRange
public RevisionRange(RevisionRange aRange)
-
RevisionRange
public RevisionRange(String revisionElement)
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 Detail
-
toApache
public RevisionRange toApache()
-
getFromRevision
public Revision getFromRevision()
-
getToRevision
public Revision getToRevision()
-
equals
public boolean equals(Object range)
-
compareTo
public int compareTo(Object range)
- Specified by:
compareToin interfaceComparable- Parameters:
range- The RevisionRange to compare this object to.
-
-