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

LongRangeSet

class LongRangeSet : RangeSet<Long> (source)


Constructors

<init> LongRangeSet()
LongRangeSet(ranges: List<LongRange>)
LongRangeSet(vararg ranges: LongRange)

Inherited Properties

size open val size: Int

Functions

clone fun clone(): RangeSet<Long>
createRange fun createRange(start: Long, endInclusive: Long): LongRange
decrementValue fun decrementValue(value: Long): Long
incrementValue fun incrementValue(value: Long): Long

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>>