goog.structs.InversionMap |
rangeArray
: Array.<number>
An array of monotonically
increasing integer values, with at least one instance.
|
valueArray
: Array.<T>
An array of corresponding values.
Length must be the same as rangeArray.
|
opt_delta
: boolean=
If true, saves only delta from previous value.
|
![]()
Gets the value corresponding to a number from the inversion map.
Arguments:
Returns: T | null
Value retrieved from inversion map; null if not found.
|
code » | ||
Gets the largest index such that rangeArray[index] <= intKey from the
inversion map.
|
code » | ||
![]()
Splices a range -> value map into this inversion map.
|
code » | ||
![]()
Stores the integers as ranges (half-open).
If delta is true, the integers are delta from the previous value and
will be restored to the absolute value.
When used as a set, even indices are IN, and odd are OUT.
|
code » |