Class Changes
java.lang.Object
org.springframework.modulith.junit.Changes
- All Implemented Interfaces:
Iterable<Changes.Change>
A set of
Changes.Change
s made to a Java project.- Author:
- Lukas Dohmen, David Bilge, Oliver Drotbohm
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static interface
A change to the local project. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) boolean
(package private) boolean
Returns whether a build-related resource has changed.(package private) boolean
(package private) boolean
Returns whether the current changes contain a change to a classpath resource, i.e. a non-source file that lives on the classpath.(package private) boolean
isEmpty()
Returns whether there are any changes at all.iterator()
(package private) static Changes
of
(Stream<ModifiedFile> files) Creates a newChanges
instance from the givenModifiedFile
s.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
NONE
-
-
Method Details
-
of
Creates a newChanges
instance from the givenModifiedFile
s.- Parameters:
files
- must not be null.- Returns:
- will never be null.
-
isEmpty
boolean isEmpty()Returns whether there are any changes at all. -
getChangedClasses
-
hasClassChanges
boolean hasClassChanges() -
contains
-
hasBuildResourceChanges
boolean hasBuildResourceChanges()Returns whether a build-related resource has changed.- Returns:
-
hasClasspathResourceChange
boolean hasClasspathResourceChange()Returns whether the current changes contain a change to a classpath resource, i.e. a non-source file that lives on the classpath. -
iterator
- Specified by:
iterator
in interfaceIterable<Changes.Change>
-
toString
-