Top Constructors Methods
org.jabref.model.openoffice.rangesort

public Class RangeOverlapWithin

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, org.jabref.model.openoffice.uno.UnoCast, .UnoTextRange, com.sun.star.text.XTextDocument, com.sun.star.text.XTextRange, com.sun.star.text.XTextRangeCompare

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <V extends RangeHolder> List<RangeOverlap<V>>
findOverlappingRanges(com.sun.star.text.XTextDocument doc, List<V>
represent the ranges to be checked.

Note

for each rangeHolder, rangeHolder.getRange() is called multiple times. To avoid repeated work, they should keep a copy of the range instead of getting it each time from the document.

rangeHolders
,
boolean
Should the result contain ranges sharing only a boundary?
includeTouching
,
int
Limit the number of records returned to atMost. Zero reportAtMost means no limit.
reportAtMost
)

Report identical, overlapping or touching ranges between elements of rangeHolders.

public static <V extends RangeHolder> List<RangeOverlap<V>>
findOverlappingRanges(RangeSort.RangePartitions<V> input, int
Limit the number of records returned to atMost. Zero atMost means no limit.
atMost
,
boolean
Should the result contain ranges sharing only a boundary?
includeTouching
)

Report identical, overlapping or touching ranges.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RangeOverlapWithinback to summary
private RangeOverlapWithin()

Method Detail

findOverlappingRangesback to summary
public static <V extends RangeHolder> List<RangeOverlap<V>> findOverlappingRanges(com.sun.star.text.XTextDocument doc, List<V> rangeHolders, boolean includeTouching, int reportAtMost)

Report identical, overlapping or touching ranges between elements of rangeHolders.

For overlapping and touching, only report consecutive ranges and only with a single sample of otherwise identical ranges.

Parameters
rangeHolders:List<V>

represent the ranges to be checked.

Note

for each rangeHolder, rangeHolder.getRange() is called multiple times. To avoid repeated work, they should keep a copy of the range instead of getting it each time from the document.

includeTouching:boolean

Should the result contain ranges sharing only a boundary?

reportAtMost:int

Limit the number of records returned to atMost. Zero reportAtMost means no limit.

findOverlappingRangesback to summary
public static <V extends RangeHolder> List<RangeOverlap<V>> findOverlappingRanges(RangeSort.RangePartitions<V> input, int atMost, boolean includeTouching)

Report identical, overlapping or touching ranges.

For overlapping and touching, only report consecutive ranges and only with a single sample of otherwise identical ranges.

Parameters
atMost:int

Limit the number of records returned to atMost. Zero atMost means no limit.

includeTouching:boolean

Should the result contain ranges sharing only a boundary?