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
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
RevisionRange
protected RevisionRange(long from, long to, boolean inheritable)Creates a new instance. Called by native library.
-
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
-
getFromRevision
public Revision getFromRevision()
-
getToRevision
public Revision getToRevision()
-
isInheritable
public boolean isInheritable()
-
equals
public boolean equals(Object range)
-
compareTo
public int compareTo(RevisionRange range)
Note: Explicitly ignores inheritable state.- Specified by:
compareToin interfaceComparable<RevisionRange>- Parameters:
range- The RevisionRange to compare this object to.
-
-