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.AllowedDependencies
closed
(List<ApplicationModule.AllowedDependency> dependencies) boolean
int
hashCode()
(package private) boolean
isAllowedDependency
(com.tngtech.archunit.core.domain.JavaClass type) Returns whether the givenJavaClass
is a valid dependency.(package private) boolean
isAllowedDependency
(Class<?> type) boolean
isEmpty()
Returns whether we have any allowed dependencies at all.(package private) static boolean
iterator()
(package private) static ApplicationModule.AllowedDependencies
open()
stream()
Returns allApplicationModule.AllowedDependency
instances as aStream
.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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.AllowedDependency
instances as aStream
.- Returns:
- will never be null.
-
isAllowedDependency
boolean isAllowedDependency(com.tngtech.archunit.core.domain.JavaClass type) Returns whether the givenJavaClass
is a valid dependency.- Parameters:
type
- must not be null.- Returns:
-
isAllowedDependency
-
iterator
- Specified by:
iterator
in interfaceIterable<ApplicationModule.AllowedDependency>
-
toString
-
equals
-
hashCode
public int hashCode()
-