kotlin-range-sets / com.github.jonpeterson.kotlin.ranges / IntRangeSet

IntRangeSet

class IntRangeSet : RangeSet<Int> (source)


Constructors

<init> IntRangeSet()
IntRangeSet(ranges: List<IntRange>)
IntRangeSet(vararg ranges: IntRange)

Inherited Properties

size open val size: Int

Functions

clone fun clone(): RangeSet<Int>
createRange fun createRange(start: Int, endInclusive: Int): IntRange
decrementValue fun decrementValue(value: Int): Int
incrementValue fun incrementValue(value: Int): Int

Inherited Functions

clear open fun clear(): Unit

Removes all values from the set.

equals open fun equals(other: Any?): Boolean
gaps fun gaps(): RangeSet<T>

Creates a new RangeSet containing missing values between the ranges of this set.

hashCode open fun hashCode(): Int
isEmpty open fun isEmpty(): Boolean
iterator open fun iterator(): MutableIterator<ClosedRange<T>>