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 class- ChangedFile.TypeChange types.
 - Constructor Summary- Constructors - Constructor - Description - ChangedFile(File sourceFolder, File file, ChangedFile.Type type)Create a new- ChangedFileinstance.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - boolean- equals(Object obj)- File- getFile()Return the file that was changed.- String- getRelativeName()Return the name of the file relative to the source folder.- ChangedFile.Type- getType()Return the type of change.- int- hashCode()- String- toString()
 
- Constructor Detail- ChangedFile- public ChangedFile(File sourceFolder, File file, ChangedFile.Type type) Create a new- ChangedFileinstance.- Parameters:
- sourceFolder- the source folder
- file- the file
- type- 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