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 protected
RevisionRange(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 int
compareTo(RevisionRange range)
Note: Explicitly ignores inheritable state.boolean
equals(Object range)
Revision
getFromRevision()
static Long
getRevisionAsLong(Revision rev)
Revision
getToRevision()
int
hashCode()
boolean
isInheritable()
String
toString()
-
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:
compareTo
in interfaceComparable<RevisionRange>
- Parameters:
range
- The RevisionRange to compare this object to.
-