Interface Changes.Change
- All Known Subinterfaces:
Changes.Change.SourceChange
- All Known Implementing Classes:
Changes.Change.JavaSourceChange
,Changes.Change.JavaTestSourceChange
,Changes.Change.OtherFileChange
- Enclosing class:
- Changes
static sealed interface Changes.Change
permits Changes.Change.SourceChange, Changes.Change.OtherFileChange
A change to the local project.
- Author:
- Lukas Dohmen, David Bilge, Oliver Drotbohm
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
A change in a Java source file.static final record
A change in a Java test source file.static final record
Some arbitrary file change.static interface
A change to a source file. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the change has the given origin.static Changes.Change
of
(ModifiedFile file) creates a new
-
Method Details
-
hasOrigin
Returns whether the change has the given origin.- Parameters:
nameOrPath
- must not be null or empty.
-
of
creates a new- Parameters:
file
-- Returns:
-