Properties
Protected _components
_components: Set < T >
Defined in ql/patterns/composite.ts:24
Methods
Protected add
Defined in ql/patterns/composite.ts:20
Parameters
Returns void
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
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.