Class ChangedFile
- java.lang.Object
- org.springframework.boot.devtools.filewatch.ChangedFile
public final class ChangedFile extends Object
A single file that has changed.- Since:
- 1.3.0
- See Also:
ChangedFiles
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChangedFile.TypeChange types.
Constructor Summary
Constructors Constructor Description ChangedFile(File sourceFolder, File file, ChangedFile.Type type)Create a newChangedFileinstance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)FilegetFile()Return the file that was changed.StringgetRelativeName()Return the name of the file relative to the source folder.ChangedFile.TypegetType()Return the type of change.inthashCode()StringtoString()
Constructor Detail
ChangedFile
public ChangedFile(File sourceFolder, File file, ChangedFile.Type type)
Create a newChangedFileinstance.- Parameters:
sourceFolder- the source folderfile- the filetype- the type of change
Method Detail
getType
public ChangedFile.Type getType()
Return the type of change.- Returns:
- the type of change
getRelativeName
public String getRelativeName()
Return the name of the file relative to the source folder.- Returns:
- the relative name