Companion

object Companion

Functions

Link copied to clipboard
fun <T : RangeValue> compare(oldSets: List<RangeSet<T>>, newSets: List<RangeSet<T>>, textDiff: ChangeDesc, comparator: RangeComparator<T>, minPointSize: Int = -1)

Iterate over two groups of sets, calling methods on comparator to notify it of possible differences.

Link copied to clipboard

The empty set of ranges.

Link copied to clipboard
fun <T : RangeValue> eq(oldSets: List<RangeSet<T>>, newSets: List<RangeSet<T>>, from: Int = 0, to: Int = FAR - 1): Boolean

Compare the contents of two groups of range sets, returning true if they are equivalent in the given range.

Link copied to clipboard
fun <T : RangeValue> iter(sets: List<RangeSet<T>>, from: Int = 0): RangeCursor<T>

Iterate over the ranges in a collection of sets, in order, starting from from.

Link copied to clipboard
fun <T : RangeValue> join(sets: List<RangeSet<T>>): RangeSet<T>

Join an array of range sets into a single set.

Link copied to clipboard
fun <T : RangeValue> of(range: Range<T>, sort: Boolean = false): RangeSet<T>

Create a range set from a single range.

fun <T : RangeValue> of(ranges: List<Range<T>>, sort: Boolean = false): RangeSet<T>

Create a range set for the given range or array of ranges.

Link copied to clipboard
fun <T : RangeValue> spans(sets: List<RangeSet<T>>, from: Int, to: Int, iterator: SpanIterator<T>, minPointSize: Int = -1): Int

Iterate over a group of range sets at the same time, notifying the iterator about the ranges covering every given piece of content.