android-beans / rocks.frieler.android.beans / BeanDefinition / canProduce

canProduce

open fun canProduce(type: KClass<*>): Boolean

Indicates whether this BeanDefinition will produce a bean of the given type (or a subtype).

Parameters

type - the type to compare with the bean's type

Return
true, if the desired type is assignable from the bean's type, false otherwise