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