Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Attribute<T>

Type parameters

  • T

Hierarchy

  • Attribute

Index

Constructors

constructor

  • new Attribute(_name: string, _ordered: boolean, _unique: boolean, _lower: number, _upper: number, _items?: T[]): Attribute

Properties

Private _items

_items: T[]

Private _lower

_lower: number

Private _name

_name: string

Private _ordered

_ordered: boolean

Private _unique

_unique: boolean

Private _upper

_upper: number

Accessors

count

  • get count(): number

iterator

  • get iterator(): IterableIterator<T>

lower

  • get lower(): number

name

  • get name(): string

ordered

  • get ordered(): boolean

unique

  • get unique(): boolean

upper

  • get upper(): number

Methods

__@iterator

  • __@iterator(): IterableIterator<T>

append

  • append(item: T): boolean

asList

asOrderedList

asOrderedSet

asSet

filter

  • filter(cb: function): Attribute<T>
  • Parameters

    • cb: function
        • (item: T, index: number): boolean
        • Parameters

          • item: T
          • index: number

          Returns boolean

    Returns Attribute<T>

first

  • first(): T | undefined

get

  • get(): T | undefined

includes

  • includes(item: T): boolean

isNotEmpty

  • isNotEmpty(): boolean

last

  • last(): T | undefined

map

  • map<U>(cb: function): U[]
  • Type parameters

    • U

    Parameters

    • cb: function
        • (item: T, index: number): U
        • Parameters

          • item: T
          • index: number

          Returns U

    Returns U[]

remove

  • remove(item: T): boolean

set

  • set(value: T | undefined): boolean

Generated using TypeDoc