Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FilterList<EntityT>

Data structure to combine Filterables conjunctively and / or disjunctively. A FilterList matches when all filterables within the andFilters match and when at least one filterable within the orFilters matches. Should not be used directly.

Type parameters

Hierarchy

  • FilterList

Implements

  • EntityIdentifiable<EntityT>

Index

Constructors

Properties

Methods

Constructors

constructor

  • Creates an instance of FilterList.

    Parameters

    • Default value andFilters: Array<Filterable<EntityT>> = []

      Filters to be combined by logical conjunction (and)

    • Default value orFilters: Array<Filterable<EntityT>> = []

      Filters to be combined by logical disjunction (or)

    Returns FilterList

Properties

andFilters

andFilters: Array<Filterable<EntityT>>

Filters to be combined by logical conjunction (and)

entityConstructor

entityConstructor: Constructable<EntityT>

Constructor type of the entity to be filtered.

orFilters

orFilters: Array<Filterable<EntityT>>

Filters to be combined by logical disjunction (or)

Methods

flatten

  • Flattens andFilters and orFilters as far as possible while staying logically equivalent.

    Returns FilterList<EntityT>

    Flattened filter list