Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Set<E>

Type parameters

  • E

Hierarchy

  • Set

Implements

Index

Constructors

constructor

  • new Set<E>(): Set<E>

Properties

Private Readonly _dart_add

_dart_add: (value: E) => boolean = ...

Type declaration

    • (value: E): boolean
    • Parameters

      • value: E

      Returns boolean

Private Readonly _dart_addAll

_dart_addAll: (elements: IIterable<E>) => void = ...

Type declaration

Private Readonly _dart_any

_dart_any: (test: (element: E) => boolean) => boolean = ...

Type declaration

    • (test: (element: E) => boolean): boolean
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      Returns boolean

Private Readonly _dart_cast

_dart_cast: <R>() => ISet<R> = ...

Type declaration

    • Type parameters

      • R

      Returns ISet<R>

Private Readonly _dart_clear

_dart_clear: () => void = ...

Type declaration

    • (): void
    • Returns void

Private Readonly _dart_contains

_dart_contains: (value?: Object) => boolean = ...

Type declaration

    • (value?: Object): boolean
    • Parameters

      • Optional value: Object

      Returns boolean

Private Readonly _dart_containsAll

_dart_containsAll: (other: IIterable<undefined | Object>) => boolean = ...

Type declaration

    • (other: IIterable<undefined | Object>): boolean
    • Parameters

      Returns boolean

Private Readonly _dart_difference

_dart_difference: (other: ISet<undefined | Object>) => ISet<E> = ...

Type declaration

    • (other: ISet<undefined | Object>): ISet<E>
    • Parameters

      • other: ISet<undefined | Object>

      Returns ISet<E>

Private Readonly _dart_elementAt

_dart_elementAt: (index: number) => E = ...

Type declaration

    • (index: number): E
    • Parameters

      • index: number

      Returns E

Private Readonly _dart_every

_dart_every: (test: (element: E) => boolean) => boolean = ...

Type declaration

    • (test: (element: E) => boolean): boolean
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      Returns boolean

Private Readonly _dart_expand

_dart_expand: <T>(f: (element: E) => IIterable<T>) => IIterable<T> = ...

Type declaration

Private Readonly _dart_firstWhere

_dart_firstWhere: (test: (element: E) => boolean, props: { orElse?: () => undefined | E }) => E = ...

Type declaration

    • (test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      • props: { orElse?: () => undefined | E }
        • Optional orElse?: () => undefined | E
            • (): undefined | E
            • Returns undefined | E

      Returns E

Private Readonly _dart_fold

_dart_fold: <T>(initialValue: T, combine: (previousValue: T, element: E) => T) => T = ...

Type declaration

    • <T>(initialValue: T, combine: (previousValue: T, element: E) => T): T
    • Type parameters

      • T

      Parameters

      • initialValue: T
      • combine: (previousValue: T, element: E) => T
          • (previousValue: T, element: E): T
          • Parameters

            • previousValue: T
            • element: E

            Returns T

      Returns T

Private Readonly _dart_followedBy

_dart_followedBy: (other: IIterable<E>) => IIterable<E> = ...

Type declaration

Private Readonly _dart_forEach

_dart_forEach: (f: (element: E) => void) => void = ...

Type declaration

    • (f: (element: E) => void): void
    • Parameters

      • f: (element: E) => void
          • (element: E): void
          • Parameters

            • element: E

            Returns void

      Returns void

Private Readonly _dart_getFirst

_dart_getFirst: () => E = ...

Type declaration

    • (): E
    • Returns E

Private Readonly _dart_getHashCode

_dart_getHashCode: () => number = ...

Type declaration

    • (): number
    • Returns number

Private Readonly _dart_getIsEmpty

_dart_getIsEmpty: () => boolean = ...

Type declaration

    • (): boolean
    • Returns boolean

Private Readonly _dart_getIsNotEmpty

_dart_getIsNotEmpty: () => boolean = ...

Type declaration

    • (): boolean
    • Returns boolean

Private Readonly _dart_getIterator

_dart_getIterator: () => IIterator<E> = ...

Type declaration

Private Readonly _dart_getLast

_dart_getLast: () => E = ...

Type declaration

    • (): E
    • Returns E

Private Readonly _dart_getLength

_dart_getLength: () => number = ...

Type declaration

    • (): number
    • Returns number

Private Readonly _dart_getSingle

_dart_getSingle: () => E = ...

Type declaration

    • (): E
    • Returns E

Private Readonly _dart_intersection

_dart_intersection: (other: ISet<undefined | Object>) => ISet<E> = ...

Type declaration

    • (other: ISet<undefined | Object>): ISet<E>
    • Parameters

      • other: ISet<undefined | Object>

      Returns ISet<E>

Private Readonly _dart_join

_dart_join: (separator: string) => string = ...

Type declaration

    • (separator: string): string
    • Parameters

      • separator: string

      Returns string

Private Readonly _dart_lastWhere

_dart_lastWhere: (test: (element: E) => boolean, props: { orElse?: () => undefined | E }) => E = ...

Type declaration

    • (test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      • props: { orElse?: () => undefined | E }
        • Optional orElse?: () => undefined | E
            • (): undefined | E
            • Returns undefined | E

      Returns E

Private Readonly _dart_lookup

_dart_lookup: (object?: Object) => undefined | E = ...

Type declaration

    • (object?: Object): undefined | E
    • Parameters

      • Optional object: Object

      Returns undefined | E

Private Readonly _dart_map

_dart_map: <T>(f: (e: E) => T) => IIterable<T> = ...

Type declaration

    • Type parameters

      • T

      Parameters

      • f: (e: E) => T
          • (e: E): T
          • Parameters

            • e: E

            Returns T

      Returns IIterable<T>

Private Readonly _dart_reduce

_dart_reduce: (combine: (value: E, element: E) => E) => E = ...

Type declaration

    • (combine: (value: E, element: E) => E): E
    • Parameters

      • combine: (value: E, element: E) => E
          • (value: E, element: E): E
          • Parameters

            • value: E
            • element: E

            Returns E

      Returns E

Private Readonly _dart_remove

_dart_remove: (value?: Object) => boolean = ...

Type declaration

    • (value?: Object): boolean
    • Parameters

      • Optional value: Object

      Returns boolean

Private Readonly _dart_removeAll

_dart_removeAll: (elements: IIterable<undefined | Object>) => void = ...

Type declaration

    • (elements: IIterable<undefined | Object>): void
    • Parameters

      Returns void

Private Readonly _dart_removeWhere

_dart_removeWhere: (test: (element: E) => boolean) => void = ...

Type declaration

    • (test: (element: E) => boolean): void
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      Returns void

Private Readonly _dart_retainAll

_dart_retainAll: (elements: IIterable<undefined | Object>) => void = ...

Type declaration

    • (elements: IIterable<undefined | Object>): void
    • Parameters

      Returns void

Private Readonly _dart_retainWhere

_dart_retainWhere: (test: (element: E) => boolean) => void = ...

Type declaration

    • (test: (element: E) => boolean): void
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      Returns void

Private Readonly _dart_singleWhere

_dart_singleWhere: (test: (element: E) => boolean, props: { orElse?: () => undefined | E }) => E = ...

Type declaration

    • (test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      • props: { orElse?: () => undefined | E }
        • Optional orElse?: () => undefined | E
            • (): undefined | E
            • Returns undefined | E

      Returns E

Private Readonly _dart_skip

_dart_skip: (count: number) => IIterable<E> = ...

Type declaration

Private Readonly _dart_skipWhile

_dart_skipWhile: (test: (value: E) => boolean) => IIterable<E> = ...

Type declaration

    • (test: (value: E) => boolean): IIterable<E>
    • Parameters

      • test: (value: E) => boolean
          • (value: E): boolean
          • Parameters

            • value: E

            Returns boolean

      Returns IIterable<E>

Private Readonly _dart_take

_dart_take: (count: number) => IIterable<E> = ...

Type declaration

Private Readonly _dart_takeWhile

_dart_takeWhile: (test: (value: E) => boolean) => IIterable<E> = ...

Type declaration

    • (test: (value: E) => boolean): IIterable<E>
    • Parameters

      • test: (value: E) => boolean
          • (value: E): boolean
          • Parameters

            • value: E

            Returns boolean

      Returns IIterable<E>

Private Readonly _dart_toList

_dart_toList: (props: { growable: boolean }) => IList<E> = ...

Type declaration

    • (props: { growable: boolean }): IList<E>
    • Parameters

      • props: { growable: boolean }
        • growable: boolean

      Returns IList<E>

Private Readonly _dart_toSet

_dart_toSet: () => ISet<E> = ...

Type declaration

Private Readonly _dart_toString

_dart_toString: () => string = ...

Type declaration

    • (): string
    • Returns string

Private Readonly _dart_union

_dart_union: (other: ISet<E>) => ISet<E> = ...

Type declaration

Private Readonly _dart_where

_dart_where: (test: (element: E) => boolean) => IIterable<E> = ...

Type declaration

    • (test: (element: E) => boolean): IIterable<E>
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      Returns IIterable<E>

Private Readonly _dart_whereType

_dart_whereType: <T>() => IIterable<T> = ...

Type declaration

Methods

add

  • add(value: E): boolean

addAll

any

  • any(test: (element: E) => boolean): boolean
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    Returns boolean

cast

  • cast<R>(): ISet<R>

clear

  • clear(): void

contains

  • contains(value?: Object): boolean
  • Parameters

    • Optional value: Object

    Returns boolean

containsAll

  • containsAll(other: IIterable<undefined | Object>): boolean

difference

  • difference(other: ISet<undefined | Object>): ISet<E>

elementAt

  • elementAt(index: number): E
  • Parameters

    • index: number

    Returns E

every

  • every(test: (element: E) => boolean): boolean
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    Returns boolean

expand

firstWhere

  • firstWhere(test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    • props: { orElse?: () => undefined | E }
      • Optional orElse?: () => undefined | E
          • (): undefined | E
          • Returns undefined | E

    Returns E

fold

  • fold<T>(initialValue: T, combine: (previousValue: T, element: E) => T): T
  • Type parameters

    • T

    Parameters

    • initialValue: T
    • combine: (previousValue: T, element: E) => T
        • (previousValue: T, element: E): T
        • Parameters

          • previousValue: T
          • element: E

          Returns T

    Returns T

followedBy

forEach

  • forEach(f: (element: E) => void): void
  • Parameters

    • f: (element: E) => void
        • (element: E): void
        • Parameters

          • element: E

          Returns void

    Returns void

getFirst

  • getFirst(): E

getHashCode

  • getHashCode(): number

getIsEmpty

  • getIsEmpty(): boolean
  • Returns boolean

getIsNotEmpty

  • getIsNotEmpty(): boolean
  • Returns boolean

getIterator

getLast

  • getLast(): E

getLength

  • getLength(): number
  • Returns number

getSingle

  • getSingle(): E

intersection

  • intersection(other: ISet<undefined | Object>): ISet<E>

join

  • join(separator?: string): string
  • Parameters

    • separator: string = ""

    Returns string

lastWhere

  • lastWhere(test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    • props: { orElse?: () => undefined | E }
      • Optional orElse?: () => undefined | E
          • (): undefined | E
          • Returns undefined | E

    Returns E

lookup

  • lookup(object?: Object): undefined | E

map

  • Type parameters

    • T

    Parameters

    • f: (e: E) => T
        • (e: E): T
        • Parameters

          • e: E

          Returns T

    Returns IIterable<T>

reduce

  • reduce(combine: (value: E, element: E) => E): E
  • Parameters

    • combine: (value: E, element: E) => E
        • (value: E, element: E): E
        • Parameters

          • value: E
          • element: E

          Returns E

    Returns E

remove

  • remove(value?: Object): boolean

removeAll

  • removeAll(elements: IIterable<undefined | Object>): void

removeWhere

  • removeWhere(test: (element: E) => boolean): void
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    Returns void

retainAll

  • retainAll(elements: IIterable<undefined | Object>): void

retainWhere

  • retainWhere(test: (element: E) => boolean): void
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    Returns void

singleWhere

  • singleWhere(test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    • props: { orElse?: () => undefined | E }
      • Optional orElse?: () => undefined | E
          • (): undefined | E
          • Returns undefined | E

    Returns E

skip

skipWhile

  • skipWhile(test: (value: E) => boolean): IIterable<E>
  • Parameters

    • test: (value: E) => boolean
        • (value: E): boolean
        • Parameters

          • value: E

          Returns boolean

    Returns IIterable<E>

take

takeWhile

  • takeWhile(test: (value: E) => boolean): IIterable<E>
  • Parameters

    • test: (value: E) => boolean
        • (value: E): boolean
        • Parameters

          • value: E

          Returns boolean

    Returns IIterable<E>

toList

  • toList(props: { growable?: boolean }): IList<E>
  • Parameters

    • props: { growable?: boolean }
      • Optional growable?: boolean

    Returns IList<E>

toSet

toString

  • toString(): string
  • Returns string

union

where

  • where(test: (element: E) => boolean): IIterable<E>
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    Returns IIterable<E>

whereType

Static castFrom

  • castFrom<S, T>(source: ISet<S>, props: { newSet?: <R>() => undefined | ISet<R> }): ISet<T>
  • Type parameters

    • S

    • T

    Parameters

    • source: ISet<S>
    • props: { newSet?: <R>() => undefined | ISet<R> }
      • Optional newSet?: <R>() => undefined | ISet<R>
          • <R>(): undefined | ISet<R>
          • Type parameters

            • R

            Returns undefined | ISet<R>

    Returns ISet<T>

Static from

Static identity

  • identity<E>(): ISet<E>

Static of

Static unmodifiable

Generated using TypeDoc