TraitFactory

open class TraitFactory<T : Trait>


Wrapper for companions to subclass to create shorter syntax. For example, device.trait(OnOff) versus device.trait(OnOff.factory).

Summary

Public constructors

Public properties

InternalTraitFactory<T>

the internal factory.

Public constructors

TraitFactory

<T : Trait> TraitFactory(factory: InternalTraitFactory<T>)

Public properties

factory

val factoryInternalTraitFactory<T>

the internal factory.