find

abstract fun <C : Any, A, T : Any> find(key: DI.Key<C, A, T>, overrideLevel: Int = 0, all: Boolean = false): List<Triple<DI.Key<Any, A, T>, DIDefinition<Any, A, T>, ContextTranslator<C, Any>?>>

Finds all keys and definitions that match the given key.

If a "perfect" match is found (a definition that exactly matches the given key), only that definition is returned, unless all is true.

Return

A list of keys and their definition.

Parameters

C

The key context type.

A

The key argument type.

T

The key return type.

key

The key to look for.

overrideLevel

0 if looking for regular bindings, 1 or more if looking for bindings that have been overridden.


abstract fun find(search: SearchSpecs): List<Triple<DI.Key<*, *, *>, List<DIDefinition<*, *, *>>, ContextTranslator<*, *>?>>

Finds all keys and definitions that match the given specs.

Return

A list of keys and their definition.