doesNotDependOn

abstract fun Layer.doesNotDependOn(layer: Layer, vararg layers: Layer)

Specifies that the current layer does not depend on any given layer.

Receiver

The Layer that does not depend on other layers.

Parameters

layer

The layer that the current layer does not depend on.

layers

The layers that the current layer does not depend on.


abstract fun Layer.doesNotDependOn(layers: Set<Layer>)

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

layers

The list of layers that the current layer does not depend on.


abstract fun Collection<Layer>.doesNotDependOn(layer: Layer)

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

layer

The layer that none of the collection layers should depend on.


abstract fun Collection<Layer>.doesNotDependOn(layers: Set<Layer>)

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

layers

The set of layers that none of the collection layers should depend on.