org.apache.subversion.javahl.types
Class RevisionRangeList

java.lang.Object
  extended by org.apache.subversion.javahl.types.RevisionRangeList
All Implemented Interfaces:
Serializable

public class RevisionRangeList
extends Object
implements Serializable

Object that describes a revision range list, including operations on it. Returned from new accessors in Mergeinfo.

Since:
1.9
See Also:
Serialized Form

Constructor Summary
RevisionRangeList(List<RevisionRange> ranges)
          Wrap a list of revision ranges.
 
Method Summary
 List<RevisionRange> getRanges()
           
 List<RevisionRange> remove(List<RevisionRange> eraser, boolean considerInheritance)
          Remove revisions in eraser from the current object and return the resulting difference.
 RevisionRangeList remove(RevisionRangeList eraser, boolean considerInheritance)
          Remove revisions in eraser from the current object and return the resulting difference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevisionRangeList

public RevisionRangeList(List<RevisionRange> ranges)
Wrap a list of revision ranges.

Method Detail

getRanges

public List<RevisionRange> getRanges()
Returns:
The wrapped list of revision ranges.

remove

public List<RevisionRange> remove(List<RevisionRange> eraser,
                                  boolean considerInheritance)
                           throws ClientException
Remove revisions in eraser from the current object and return the resulting difference.

Parameters:
eraser - The list of revisions to remoove.
considerInheritance - Determines how to account for the RevisionRange#isInherited property when comparing revision ranges for equality.
Throws:
ClientException

remove

public RevisionRangeList remove(RevisionRangeList eraser,
                                boolean considerInheritance)
                         throws ClientException
Remove revisions in eraser from the current object and return the resulting difference.

Parameters:
eraser - The list of revisions to remoove.
considerInheritance - Determines how to account for the RevisionRange#isInherited property when comparing revision ranges for equality.
Throws:
ClientException