Options
All
  • Public
  • Public/Protected
  • All
Menu

Composite pattern.

The typical use of this class is:

class CompositeFoo extends Composite<Foo> {
   ...
};

which causes CompositeFoo to inherit from Foo and provides it with methods for adding components. Of course, any abstract Foo interface must still be implemented.

Type parameters

  • T

Hierarchy

  • Composite

Index

Properties

Methods

Properties

Protected _components

_components: Set<T>

Methods

Protected add

  • add(c: T): void
  • Parameters

    • c: T

    Returns void