Class RevisionRange
java.lang.Object
org.apache.subversion.javahl.types.RevisionRange
- All Implemented Interfaces:
Serializable,Comparable<RevisionRange>
public class RevisionRange extends Object implements Comparable<RevisionRange>, Serializable
Object that describes a revision range
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description protectedRevisionRange(long from, long to, boolean inheritable)Creates a new instance.RevisionRange(String revisionElement)Accepts a string in one of these forms: n m-n Parses the results into a from and to revisionRevisionRange(Revision from, Revision to)RevisionRange(Revision from, Revision to, boolean inheritable) -
Method Summary
Modifier and Type Method Description intcompareTo(RevisionRange range)Note: Explicitly ignores inheritable state.booleanequals(Object range)RevisiongetFromRevision()static LonggetRevisionAsLong(Revision rev)RevisiongetToRevision()inthashCode()booleanisInheritable()StringtoString()
-
Constructor Details
-
RevisionRange
protected RevisionRange(long from, long to, boolean inheritable)Creates a new instance. Called by native library. -
RevisionRange
- Since:
- 1.9
-
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
-
getFromRevision
-
getToRevision
-
isInheritable
public boolean isInheritable() -
toString
-
getRevisionAsLong
-
hashCode
public int hashCode() -
equals
-
compareTo
Note: Explicitly ignores inheritable state.- Specified by:
compareToin interfaceComparable<RevisionRange>- Parameters:
range- The RevisionRange to compare this object to.
-