On this page

Like Set but with an addAll method to eventually add items from another iterable. Access methods make sure that all delayed operations are executed. Iteration methods deopts to normal Set performance until clear is called again (because of the chance of modifications during iteration).

new LazySet(iterable?): void
  • iterable {Iterable} init iterable
  • Returns: {LazySet}
Attributes
Like Set but with an addAll method to eventually add items from another iterable. Access methods make sure that all delayed operations are executed. Iteration methods deopts to normal Set performance until clear is called again (because of the chance of modifications during iteration).
Returns:
{SetIterator }

webpack.util.LazySet.add(item): void
  • item {T} an item
  • Returns: {LazySet} itself

webpack.util.LazySet.addAll(iterable): void
  • iterable {LazySet|Iterable<T, any, any>} a immutable iterable or another immutable LazySet which will eventually be merged into the Set
  • Returns: {LazySet} itself

webpack.util.LazySet.clear(): void
Returns:
{void}

Like Set but with an addAll method to eventually add items from another iterable. Access methods make sure that all delayed operations are executed. Iteration methods deopts to normal Set performance until clear is called again (because of the chance of modifications during iteration).


webpack.util.LazySet.delete(value): void
  • value {T} an item
  • Returns: <boolean> true, if the value was in the Set before

webpack.util.LazySet.entries(): SetIterator<Tuple<T, T>>
Returns:
{SetIterator<Tuple<T, T>>} entries

webpack.util.LazySet.forEach(callbackFn, thisArg): void
Attributes
callbackFn:<object>
function called for each entry
thisArg:
{K} this argument for the callbackFn
Returns:
{void}

webpack.util.LazySet.has(item): void
  • item {T} an item
  • Returns: <boolean> true, when the item is in the Set

webpack.util.LazySet.keys(): SetIterator<T>
Returns:
{SetIterator } keys

webpack.util.LazySet.serialize(__namedParameters): void
Attributes
__namedParameters:<ObjectSerializerContext>
context
Returns:
{void}

webpack.util.LazySet.values(): SetIterator<T>
Returns:
{SetIterator } values

webpack.util.LazySet.deserialize(__namedParameters): LazySet<T>
Attributes
__namedParameters:<ObjectDeserializerContext>
context
Returns:
{LazySet } lazy set