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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA change in a Java source file.static final recordA change in a Java test source file.static final recordSome arbitrary file change.static interfaceA change to a source file. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the change has the given origin.static Changes.Changeof(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:
-