Class ApplicationModuleIdentifiers
java.lang.Object
org.springframework.modulith.core.ApplicationModuleIdentifiers
- All Implemented Interfaces:
Iterable<ApplicationModuleIdentifier>
public class ApplicationModuleIdentifiers
extends Object
implements Iterable<ApplicationModuleIdentifier>
ApplicationModuleIdentifier
s that allow iteration in the order provided by the sources.- Since:
- 1.4
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptioniterator()
static ApplicationModuleIdentifiers
of
(List<ApplicationModuleIdentifier> identifiers) Creates a newApplicationModuleIdentifiers
for the given source identifiers.static ApplicationModuleIdentifiers
of
(ApplicationModules modules) Creates a newApplicationModuleIdentifiers
from the given ApplicationModules.stream()
Creates a newStream
ofApplicationModuleIdentifier
s.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
of
Creates a newApplicationModuleIdentifiers
from the given ApplicationModules.- Parameters:
modules
- must not be null.- Returns:
- will never be null.
-
of
Creates a newApplicationModuleIdentifiers
for the given source identifiers.- Parameters:
identifiers
- will never be null.- Returns:
- will never be null.
-
stream
Creates a newStream
ofApplicationModuleIdentifier
s.- Returns:
- will never be null.
-
iterator
- Specified by:
iterator
in interfaceIterable<ApplicationModuleIdentifier>
-