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
ConstructorDescriptionDeclaredDependencies
(List<ApplicationModule.DeclaredDependency> dependencies) Creates a newApplicationModule.DeclaredDependencies
for the givenList
ofApplicationModule.DeclaredDependency
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(com.tngtech.archunit.core.domain.JavaClass type) Returns whether any of the dependencies contains the givenJavaClass
.boolean
int
hashCode()
boolean
isEmpty()
Returns whether theApplicationModule.DeclaredDependencies
are empty.toString()
-
Constructor Details
-
DeclaredDependencies
Creates a newApplicationModule.DeclaredDependencies
for the givenList
ofApplicationModule.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.DeclaredDependencies
are empty. -
toString
-
equals
-
hashCode
public int hashCode()
-