Skip to main content

abstract class HashSetNonEmptyBase<T>

undocumented

Extends: NonEmptyBase<E>

Extended by: HashSetBlock<T>, HashSetCollision<T>

Type parameters​

NameDescription
Tundocumented

Properties​

_NonEmptyType​

undocumented

Definition​

_NonEmptyType: HashSet.NonEmpty<T>;

Overrides​

NonEmptyBase._NonEmptyType

context​

undocumented

Definition​

abstract get context(): HashSetContext<T>;

isEmpty​

Returns false since the collection is known to be non-empty.

Definition​

get isEmpty(): false;

Overrides​

NonEmptyBase.isEmpty

size​

undocumented

Definition​

abstract get size(): number;

Methods​

[Symbol.iterator]​

Returns a fast iterator over the elements of the collection.

Definition​

[Symbol.iterator](): FastIterator<E>;

Overrides​

NonEmptyBase.[Symbol.iterator]

add​

undocumented

Definition​

abstract add(value: T): HashSetNonEmptyBase<T>;

Parameters​

NameTypeDescription
valueT

addAll​

undocumented

Definition​

addAll(values: StreamSource<T>): HashSet.NonEmpty<T>;

Parameters​

NameTypeDescription
valuesStreamSource<T>

asNormal​

undocumented

Definition​

asNormal(): this;

Overrides​

NonEmptyBase.asNormal

assumeNonEmpty​

Returns this, since the collection is already known to be non-empty.

Definition​

assumeNonEmpty(): this;

Overrides​

NonEmptyBase.assumeNonEmpty

difference​

undocumented

Definition​

difference(other: StreamSource<T>): HashSet<T>;

Parameters​

NameTypeDescription
otherStreamSource<T>

filter​

undocumented

Definition​

filter(pred: (value: T, index: number, halt: () => void) => boolean, options?: {
    negate?: boolean | undefined;
  }): any;

Parameters​

NameTypeDescription
pred(value: T, index: number, halt: () => void) => boolean
options{
    negate?: boolean | undefined;
  }

forEach​

undocumented

Definition​

abstract forEach(f: (value: T, index: number, halt: () => void) => void, options?: {
    state?: TraverseState;
  }): void;

Parameters​

NameTypeDescription
f(value: T, index: number, halt: () => void) => void
options{
    state?: TraverseState;
  }

has​

undocumented

Definition​

abstract has<U>(value: RelatedTo<T, U>): boolean;

Type parameters​

NameDescription
U

Parameters​

NameTypeDescription
valueRelatedTo<T, U>

intersect​

undocumented

Definition​

intersect(other: StreamSource<T>): HashSet<T>;

Parameters​

NameTypeDescription
otherStreamSource<T>

nonEmpty​

Returns true and instructs the compiler to treat the instance as non-empty.

Definition​

nonEmpty(): this is this['_NonEmptyType'];

Overrides​

NonEmptyBase.nonEmpty

remove​

undocumented

Definition​

abstract remove<U>(value: RelatedTo<T, U>): HashSet<T>;

Type parameters​

NameDescription
U

Parameters​

NameTypeDescription
valueRelatedTo<T, U>

removeAll​

undocumented

Definition​

removeAll(values: StreamSource<T>): HashSet<T>;

Parameters​

NameTypeDescription
valuesStreamSource<T>

stream​

undocumented

Definition​

abstract stream(): Stream.NonEmpty<T>;

Overrides​

NonEmptyBase.stream

symDifference​

undocumented

Definition​

symDifference(other: StreamSource<T>): HashSet<T>;

Parameters​

NameTypeDescription
otherStreamSource<T>

toArray​

undocumented

Definition​

abstract toArray(): ArrayNonEmpty<T>;

toBuilder​

undocumented

Definition​

toBuilder(): HashSet.Builder<T>;

toJSON​

undocumented

Definition​

toJSON(): ToJSON<T[]>;

toString​

undocumented

Definition​

toString(): string;

union​

undocumented

Definition​

union(other: StreamSource<T>): HashSet.NonEmpty<T>;

Parameters​

NameTypeDescription
otherStreamSource<T>