goog.math.RangeSet |
Returns an iterator that iterates over the ranges in the RangeSet.
Arguments:
Returns: !goog.iter.Iterator
An iterator over the values in the set.
|
code » | ||
![]()
Adds a range to the set. If the new range overlaps existing values, those
ranges will be merged.
Arguments:
|
code » | ||
![]()
Removes all values in the set.
|
code » | ||
No description.
Returns: !goog.math.RangeSet
A new RangeSet containing the same values as
this one.
|
code » | ||
Determines whether a given range is in the set. Only succeeds if the entire
range is available.
Arguments:
Returns: boolean
Whether the entire requested range is set.
|
code » | ||
Determines whether a given value is set in the RangeSet.
|
code » | ||
No description.
Returns: number
The sum of the lengths of ranges covered in the set.
|
code » | ||
Subtracts the ranges of another set from this one, returning the result
as a new RangeSet.
Arguments:
Returns: !goog.math.RangeSet
A new RangeSet containing all values in this
set minus the values of the input set.
|
code » | ||
No description.
Returns: goog.math.Range
The total range this set covers, ignoring any
gaps between ranges.
|
code » | ||
Intersects this RangeSet with another.
Arguments:
Returns: !goog.math.RangeSet
A new RangeSet containing all values set in
both this and the input set.
|
code » | ||
Creates an inverted slice of this set over the input range.
Arguments:
Returns: !goog.math.RangeSet
A new RangeSet containing inverted values from
the original over the input range.
|
code » | ||
No description.
Returns: boolean
Whether any ranges are currently in the set.
|
code » | ||
![]()
Removes a range of values from the set.
Arguments:
|
code » | ||
Creates a subset of this set over the input range.
Arguments:
Returns: !goog.math.RangeSet
A new RangeSet with a copy of the values in the
input range.
|
code » | ||
No description.
Returns: string
A debug string in the form [[1, 5], [8, 9], [15, 30]].
|
code » | ||
Returns the union of this RangeSet with another.
Arguments:
Returns: !goog.math.RangeSet
A new RangeSet containing all values from
either set.
|
code » |
![]()
A sorted list of ranges that represent the values in the set.
|
Code » |
Compares two sets for equality.
Arguments:
Returns: boolean
Whether both sets contain the same values.
|
code » |