|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tmatesoft.svn.core.SVNMergeRange
public class SVNMergeRange
The SVNMergeRange class represents a range of merged revisions.
Constructor Summary | |
---|---|
SVNMergeRange(long startRevision,
long endRevision,
boolean isInheritable)
Constructs a new SVNMergeRange object. |
Method Summary | |
---|---|
boolean |
canCombine(SVNMergeRange range,
boolean considerInheritance)
Tells whether this range can me combined with the given range depending on
inheritance or not. |
SVNMergeRange |
combine(SVNMergeRange range,
boolean considerInheritance)
Combines this merge range and the given range into a single one. |
int |
compareTo(java.lang.Object o)
Compares this object to another one. |
boolean |
contains(SVNMergeRange range,
boolean considerInheritance)
Says whether this range contains the specified range depending on inheritance or not. |
SVNMergeRange |
dup()
Makes an exact copy of this object. |
boolean |
equals(java.lang.Object obj)
Says if this object is equal to obj or not. |
long |
getEndRevision()
Returns the end revision of this merge range. |
long |
getStartRevision()
Returns the start revision of this merge range. |
boolean |
intersects(SVNMergeRange range,
boolean considerInheritance)
Says whether this range intersects the specified range depending on inheritance or not. |
boolean |
isInheritable()
Tells whether this merge range should be inherited by treewise descendants of the path to which the range applies. |
void |
setEndRevision(long endRevision)
Sets the end revision of this merge range. |
void |
setInheritable(boolean isInheritable)
Sets whether this merge range is inheritable or not. |
void |
setStartRevision(long startRevision)
Sets the start revision of this merge range. |
SVNMergeRange |
swapEndPoints()
Swaps the start revision and the end revision of this merge range object. |
java.lang.String |
toString()
Return a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SVNMergeRange(long startRevision, long endRevision, boolean isInheritable)
SVNMergeRange
object.
startRevision
- start revision of this merge rangeendRevision
- end revision of this merge rangeisInheritable
- whether this range is inheritable or notMethod Detail |
---|
public long getEndRevision()
public long getStartRevision()
public void setEndRevision(long endRevision)
SVNKit
internals and is not intended for API users.
endRevision
- merge range end revisionpublic void setStartRevision(long startRevision)
SVNKit
internals and is not intended for API users.
startRevision
- merge range start revisionpublic int compareTo(java.lang.Object o)
inheritance
is not taken into account when comparing two
SVNMergeRange
objects.
compareTo
in interface java.lang.Comparable
o
- object to compare to
0
if o
is exactly this object or
o.getStartRevision() == this.getStartRevision() && o.getEndRevision() == this.getEndRevision()
;
-1
if either this.getStartRevision() < o.getStartRevision()
or
this.getStartRevision() == o.getStartRevision() && this.getEndRevision() < o.getEndRevision()
;
1
if either this.getStartRevision() > o.getStartRevision()
or
this.getStartRevision() == o.getStartRevision() && this.getEndRevision() > o.getEndRevision()
public boolean equals(java.lang.Object obj)
obj
or not.
Identical to this.compareTo(obj) == 0
.
equals
in class java.lang.Object
obj
- object ot compare to
public SVNMergeRange combine(SVNMergeRange range, boolean considerInheritance)
range
into a single one.
Combining may only occur if canCombine(SVNMergeRange, boolean)
returns true
for the specified parameters.
Note: combining changes the state of this object.
range
- range to combine with this rangeconsiderInheritance
- whether inheritance information should be taken into account
range
public boolean canCombine(SVNMergeRange range, boolean considerInheritance)
range
depending on
inheritance or not.
Combining may occur only when two ranges intersect each other what may be checked by the following case:
range1.getStartRevision() <= range2.getEndRevision() && range2.getStartRevision() <= range1.getEndRevision()
.
If this condition evaluates to true, then the ranges intersect.
range
- range to combine with this rangeconsiderInheritance
- whether inheritance information should be taken into account or not
considerInheritance
is not set, or if set, both ranges
have the same inheritance; otherwise falsepublic boolean contains(SVNMergeRange range, boolean considerInheritance)
range
depending on inheritance or not.
range
- range to checkconsiderInheritance
- whether inheritance information should be taken into account or not
range
; otherwise falsepublic boolean intersects(SVNMergeRange range, boolean considerInheritance)
range
depending on inheritance or not.
range
- range to checkconsiderInheritance
- whether inheritance information should be taken into account or not
range
; otherwise falsepublic SVNMergeRange swapEndPoints()
public boolean isInheritable()
public void setInheritable(boolean isInheritable)
SVNKit
internals and is not intended for API users.
isInheritable
- whether this range is inheritable or notpublic SVNMergeRange dup()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |