setDefaultFor
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun <Element : Comparable<Element>> Order.Companion.setDefaultFor()(source)
fun <Element : Comparable<Element>> Order.Companion.setDefaultFor()(source)
Sets default Order context for the given supplied type Element (which must implement Comparable) into context registry builder.
The registered order context uses the natural ordering of comparable elements.
Receiver
The order companion object.
Context Parameters
registry
The mutable owned provider registry to register into.
Type Parameters
Element
The supplied element type (must implement Comparable) for which to set the default order context.