class HashSetBlock<T>
undocumented
Extends: HashSetNonEmptyBase<T>
Type parameters
Name | Description |
---|---|
T | undocumented |
Properties
_NonEmptyType
undocumented
_NonEmptyType
context
undocumented
context
entrySets
undocumented
entrySets
Definition
readonly entrySets: readonly
SetEntrySet
<T>[]
|
null;
isEmpty
undocumented
isEmpty
size
undocumented
size
Methods
[Symbol.iterator]
undocumented
[Symbol.iterator]
add
undocumented
add
Definition
add(value: T, hash?: number):
HashSetBlock
<T>;
Parameters
Name | Type | Description |
---|---|---|
value | T | |
hash | number |
Overrides
addAll
Returns the collection with the values in given values
StreamSource
added.
addAll
values
StreamSource
added.Definition
addAll(values:
StreamSource
<T>):
HashSet.NonEmpty
<T>;
Parameters
Name | Type | Description |
---|---|---|
values | StreamSource <T> |
HashSet.of(1, 2, 3).addAll(10, 11).toArray() // => [1, 2, 3, 10, 11]
Overrides
asNormal
undocumented
asNormal
assumeNonEmpty
undocumented
assumeNonEmpty
copy
undocumented
copy
Definition
copy(entries?: readonly T[]
|
null, entrySets?: readonly
SetEntrySet
<T>[]
|
null, size?: number):
HashSetBlock
<T>;
Parameters
Name | Type | Description |
---|---|---|
entries | readonly T[] | null | |
entrySets | readonly SetEntrySet <T>[] | null | |
size | number |
difference
undocumented
difference
Definition
difference(other:
StreamSource
<T>):
HashSet
<T>;
Parameters
Name | Type | Description |
---|---|---|
other | StreamSource <T> |
Overrides
filter
undocumented
filter
forEach
undocumented
forEach
Definition
forEach(f: (entry: T, index: number, halt: () => void) => void, options?: {
state?:
TraverseState
;
}): void;
Parameters
Name | Type | Description |
---|---|---|
f | (entry: T, index: number, halt: () => void) => void | |
options | { state?: TraverseState ; } |
Overrides
has
undocumented
has
intersect
undocumented
intersect
Definition
intersect(other:
StreamSource
<T>):
HashSet
<T>;
Parameters
Name | Type | Description |
---|---|---|
other | StreamSource <T> |
Overrides
nonEmpty
undocumented
nonEmpty
remove
undocumented
remove
removeAll
undocumented
removeAll
Definition
removeAll(values:
StreamSource
<T>):
HashSet
<T>;
Parameters
Name | Type | Description |
---|---|---|
values | StreamSource <T> |
Overrides
stream
undocumented
stream
symDifference
Returns a collection of the values that are either in this collection or in the other
StreamSource
, but not in both.
symDifference
other
StreamSource
, but not in both.Definition
symDifference(other:
StreamSource
<T>):
HashSet
<T>;
Parameters
Name | Type | Description |
---|---|---|
other | StreamSource <T> |
HashSet.of(1, 2, 3).symDifference([2, 4]).toArray()
// => [1, 3, 4]
Overrides
toArray
undocumented
toArray
toBuilder
Returns a builder object containing the values of this collection.
toBuilder
Definition
toBuilder():
HashSet.Builder
<T>;
const builder: HashSet.Builder<number> = HashSet.of(1, 2, 3).toBuilder()
Overrides
toJSON
undocumented
toJSON
toString
undocumented
toString
union
Returns a collection containing all values from this collection and all values of given other
StreamSource
.
union
other
StreamSource
.Definition
union(other:
StreamSource
<T>):
HashSet.NonEmpty
<T>;
Parameters
Name | Type | Description |
---|---|---|
other | StreamSource <T> |
HashSet.of(1, 2, 3).union(HashSet.of(2, 4, 6)).toArray()
// => [1, 2, 3, 4, 6]