findDecorator

Find a decorator in decorator chain that implements Needle type.

Find a decorator in decorator chain that implements Needle type.

Needle
findDecorator
(
Needle
Haystack : Decorator!Z
Z
T
)

Parameters

Needle

the type searched decorator should implement

Haystack

type of the chain of decorators through which to traverse

decorated T

top of decorator chain.

Return Value

Type: Needle

Decorator or null if not found.

Meta