Deep copies the object and returns a new instance.
Converts the object to a different NumberType equivalent.
Optional
options: ConvertOptionsCompares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.
If normalizeNumberTypes
is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").
Optional
normalizeNumberTypes: booleanInternal helper method to convert the number fields of the object to a different NumberType equivalent.
Returns the [inCurrentButNotInToCheck, overlaps].
Returns the overlap between the current range and the provided range.
Checks if the object has number fields.
Returns a new UintRangeArray that is the result of inverting the current range (i.e. getting all values within the bounds that are not in the current range).
Returns true if the range is full (i.e. start = 1 and end = 18446744073709551615).
This is considered full in the context of badge IDs and times.
Returns true if the range overlaps with the other range.
Returns the size of the range (i.e. end - start + 1).
Converts the object to a JSON object with all primitive types.
Converts the object to a JSON string.
Protected
Static
createStatic
FromStatic
fromOptional
options: Partial<JsonReadOptions>Static
fromOptional
options: Partial<JsonReadOptions>Static
fromStatic
FullReturns a new UintRange from 1 to 18446744073709551615 (max uint64).
Static
FullReturns a new UintRangeArray from 1 to 18446744073709551615 (max uint64).
UintRange represents a range of numbers from some start ID to some end ID, inclusive.
See https://docs.bitbadges.io/for-developers/core-concepts/uint-ranges for more information.