open fun containsAll(elements: Collection<ClosedRange<T>>): Boolean
(source)Checks if all values in the specified ranges are present in the set.
Examples:
assert(IntRangeSet(listOf(5..8, 11..16)).containsAll(listOf(6..7, 14..15)) == true)
assert(IntRangeSet(listOf(5..8, 11..16)).containsAll(listOf(6..12, 14..15)) == false)
elements
- ranges of values to determine presence ofReturn
whether all values are all contained within the set