entryOf
inline fun <T : Any> entryOf(qualifier: Qualifier = EmptyQualifier, noinline supplier: ScopedSupplier<T>): Pair<Identifier<T>, ScopedSupplierDeclaration<T>>
Content copied to clipboard
Creates a Declaration, automatically creating the identifier from T and qualifier and using the given supplier. Returns a pair with the identifier and the declaration.
fun <T : Any> entryOf(declaration: Declaration<T>): Pair<Identifier<T>, Declaration<T>>
Content copied to clipboard
Creates an entry directly from a declaration instead of from a qualifier + supplier.