doesNotDependOn
Specifies that the current layer does not depend on any given layer.
Receiver
The Layer that does not depend on other layers.
Parameters
The layer that the current layer does not depend on.
The layers that the current layer does not depend on.
Specifies that the current layer does not depend on the given list of layers.
Receiver
The Layer that does not depend on other layers.
Parameters
The list of layers that the current layer does not depend on.
Specifies that none of the layers in the collection depend on the specified layer.
Example usage:
val layers = setOf(domainLayer, dataLayer)
layers.doesNotDependOn(presentationLayer)
Receiver
The collection of Layers that do not depend on the specified layer.
Parameters
The layer that none of the collection layers should depend on.
Specifies that none of the layers in the collection depend on any of the specified layers.
Example usage:
val sourceLayers = setOf(domainLayer, dataLayer)
val targetLayers = setOf(presentationLayer, infrastructureLayer)
sourceLayers.doesNotDependOn(targetLayers)
Receiver
The collection of Layers that do not depend on the specified layers.
Parameters
The set of layers that none of the collection layers should depend on.