Class ApplicationModule.AllowedDependencies
java.lang.Object
org.springframework.modulith.core.ApplicationModule.AllowedDependencies
- All Implemented Interfaces:
Iterable<ApplicationModule.AllowedDependency>
- Enclosing class:
- ApplicationModule
public static class ApplicationModule.AllowedDependencies
extends Object
implements Iterable<ApplicationModule.AllowedDependency>
A collection wrapper for
ApplicationModule.AllowedDependency instances.- Since:
- 1.4.2, previously package private
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescription(package private) static ApplicationModule.AllowedDependenciesclosed(List<ApplicationModule.AllowedDependency> dependencies) booleaninthashCode()(package private) booleanisAllowedDependency(com.tngtech.archunit.core.domain.JavaClass type) Returns whether the givenJavaClassis a valid dependency.(package private) booleanisAllowedDependency(Class<?> type) booleanisEmpty()Returns whether we have any allowed dependencies at all.(package private) static booleaniterator()(package private) static ApplicationModule.AllowedDependenciesopen()stream()Returns allApplicationModule.AllowedDependencyinstances as aStream.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
isOpen
-
open
-
closed
static ApplicationModule.AllowedDependencies closed(List<ApplicationModule.AllowedDependency> dependencies) -
isEmpty
public boolean isEmpty()Returns whether we have any allowed dependencies at all. -
stream
Returns allApplicationModule.AllowedDependencyinstances as aStream.- Returns:
- will never be null.
-
isAllowedDependency
boolean isAllowedDependency(com.tngtech.archunit.core.domain.JavaClass type) Returns whether the givenJavaClassis a valid dependency.- Parameters:
type- must not be null.- Returns:
-
isAllowedDependency
-
iterator
- Specified by:
iteratorin interfaceIterable<ApplicationModule.AllowedDependency>
-
toString
-
equals
-
hashCode
public int hashCode()
-