Class ApplicationModule.DeclaredDependencies
java.lang.Object
org.springframework.modulith.core.ApplicationModule.DeclaredDependencies
- Enclosing class:
- ApplicationModule
A collection wrapper for
ApplicationModule.DeclaredDependency instances.- Author:
- Oliver Drotbohm
-
Constructor Summary
ConstructorsConstructorDescriptionDeclaredDependencies(List<ApplicationModule.DeclaredDependency> dependencies) Creates a newApplicationModule.DeclaredDependenciesfor the givenListofApplicationModule.DeclaredDependency. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(com.tngtech.archunit.core.domain.JavaClass type) Returns whether any of the dependencies contains the givenJavaClass.booleaninthashCode()booleanisEmpty()Returns whether theApplicationModule.DeclaredDependenciesare empty.toString()
-
Constructor Details
-
DeclaredDependencies
Creates a newApplicationModule.DeclaredDependenciesfor the givenListofApplicationModule.DeclaredDependency.- Parameters:
dependencies- must not be null.
-
-
Method Details
-
contains
public boolean contains(com.tngtech.archunit.core.domain.JavaClass type) Returns whether any of the dependencies contains the givenJavaClass.- Parameters:
type- must not be null.
-
isEmpty
public boolean isEmpty()Returns whether theApplicationModule.DeclaredDependenciesare empty. -
toString
-
equals
-
hashCode
public int hashCode()
-