Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IListMixin<E>

Type parameters

  • E

Hierarchy

  • IListMixin

Implemented by

Index

Properties

add

add: (element: E) => void

Type declaration

    • (element: E): void
    • Parameters

      • element: E

      Returns void

addAll

addAll: (iterable: IIterable<E>) => void

Type declaration

any

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

asMap

asMap: () => {}

Type declaration

    • (): {}
    • Returns {}

      • [index: number]: E

cast

cast: <R>() => IList<R>

Type declaration

    • Type parameters

      • R

      Returns IList<R>

clear

clear: () => void

Type declaration

    • (): void
    • Returns void

contains

contains: (element?: Object) => boolean

Type declaration

    • (element?: Object): boolean
    • Parameters

      • Optional element: Object

      Returns boolean

elementAt

elementAt: (index: number) => E

Type declaration

    • (index: number): E
    • Parameters

      • index: number

      Returns E

every

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

expand

expand: <T>(f: (element: E) => IIterable<T>) => IIterable<T>

Type declaration

fillRange

fillRange: (start: number, end: number, fill?: E) => void

Type declaration

    • (start: number, end: number, fill?: E): void
    • Parameters

      • start: number
      • end: number
      • Optional fill: E

      Returns void

firstWhere

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

fold

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

followedBy

followedBy: (other: IIterable<E>) => IIterable<E>

Type declaration

forEach

forEach: (action: (element: E) => void) => void

Type declaration

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

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

            • element: E

            Returns void

      Returns void

getFirst

getFirst: () => E

Type declaration

    • (): E
    • Returns E

getHashCode

getHashCode: () => number

Type declaration

    • (): number
    • Returns number

getIsEmpty

getIsEmpty: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

getIsNotEmpty

getIsNotEmpty: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

getIterator

getIterator: () => IIterator<E>

Type declaration

getLast

getLast: () => E

Type declaration

    • (): E
    • Returns E

getLength

getLength: () => number

Type declaration

    • (): number
    • Returns number

getRange

getRange: (start: number, end: number) => IIterable<E>

Type declaration

    • Parameters

      • start: number
      • end: number

      Returns IIterable<E>

getReversed

getReversed: () => IIterable<E>

Type declaration

getSingle

getSingle: () => E

Type declaration

    • (): E
    • Returns E

indexOf

indexOf: (element: undefined | Object, start: number) => number

Type declaration

    • (element: undefined | Object, start: number): number
    • Parameters

      • element: undefined | Object
      • start: number

      Returns number

indexWhere

indexWhere: (test: (element: E) => boolean, start: number) => number

Type declaration

    • (test: (element: E) => boolean, start: number): number
    • Parameters

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

            • element: E

            Returns boolean

      • start: number

      Returns number

insert

insert: (index: number, element: E) => void

Type declaration

    • (index: number, element: E): void
    • Parameters

      • index: number
      • element: E

      Returns void

insertAll

insertAll: (index: number, iterable: IIterable<E>) => void

Type declaration

    • (index: number, iterable: IIterable<E>): void
    • Parameters

      Returns void

join

join: (separator: string) => string

Type declaration

    • (separator: string): string
    • Parameters

      • separator: string

      Returns string

lastIndexOf

lastIndexOf: (element?: Object, start?: number) => number

Type declaration

    • (element?: Object, start?: number): number
    • Parameters

      • Optional element: Object
      • Optional start: number

      Returns number

lastIndexWhere

lastIndexWhere: (test: (element: E) => boolean, start?: number) => number

Type declaration

    • (test: (element: E) => boolean, start?: number): number
    • Parameters

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

            • element: E

            Returns boolean

      • Optional start: number

      Returns number

lastWhere

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

map

map: <T>(f: (element: E) => T) => IIterable<T>

Type declaration

    • Type parameters

      • T

      Parameters

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

            • element: E

            Returns T

      Returns IIterable<T>

reduce

reduce: (combine: (previousValue: E, element: E) => E) => E

Type declaration

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

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

            • previousValue: E
            • element: E

            Returns E

      Returns E

remove

remove: (element?: Object) => boolean

Type declaration

    • (element?: Object): boolean
    • Parameters

      • Optional element: Object

      Returns boolean

removeAt

removeAt: (index: number) => E

Type declaration

    • (index: number): E
    • Parameters

      • index: number

      Returns E

removeLast

removeLast: () => E

Type declaration

    • (): E
    • Returns E

removeRange

removeRange: (start: number, end: number) => void

Type declaration

    • (start: number, end: number): void
    • Parameters

      • start: number
      • end: number

      Returns void

removeWhere

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

replaceRange

replaceRange: (start: number, end: number, newContents: IIterable<E>) => void

Type declaration

    • (start: number, end: number, newContents: IIterable<E>): void
    • Parameters

      • start: number
      • end: number
      • newContents: IIterable<E>

      Returns void

retainWhere

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

setAll

setAll: (index: number, iterable: IIterable<E>) => void

Type declaration

    • (index: number, iterable: IIterable<E>): void
    • Parameters

      Returns void

setFirst

setFirst: (value: E) => void

Type declaration

    • (value: E): void
    • Parameters

      • value: E

      Returns void

setLast

setLast: (value: E) => void

Type declaration

    • (value: E): void
    • Parameters

      • value: E

      Returns void

setLength

setLength: (newLength: number) => void

Type declaration

    • (newLength: number): void
    • Parameters

      • newLength: number

      Returns void

setRange

setRange: (start: number, end: number, iterable: IIterable<E>, skipCount: number) => void

Type declaration

    • (start: number, end: number, iterable: IIterable<E>, skipCount: number): void
    • Parameters

      • start: number
      • end: number
      • iterable: IIterable<E>
      • skipCount: number

      Returns void

shuffle

shuffle: (random?: IRandom) => void

Type declaration

    • (random?: IRandom): void
    • Parameters

      • Optional random: IRandom

      Returns void

singleWhere

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

skip

skip: (count: number) => IIterable<E>

Type declaration

skipWhile

skipWhile: (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>

sort

sort: (compare?: (a: E, b: E) => number) => void

Type declaration

    • (compare?: (a: E, b: E) => number): void
    • Parameters

      • Optional compare: (a: E, b: E) => number
          • (a: E, b: E): number
          • Parameters

            • a: E
            • b: E

            Returns number

      Returns void

sublist

sublist: (start: number, end?: number) => IList<E>

Type declaration

    • (start: number, end?: number): IList<E>
    • Parameters

      • start: number
      • Optional end: number

      Returns IList<E>

take

take: (count: number) => IIterable<E>

Type declaration

takeWhile

takeWhile: (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>

toList

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

Type declaration

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

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

      Returns IList<E>

toSet

toSet: () => ISet<E>

Type declaration

toString

toString: () => string

Type declaration

    • (): string
    • Returns string

where

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>

whereType

whereType: <T>() => IIterable<T>

Type declaration

Generated using TypeDoc