Class ChangedFiles
- java.lang.Object
- org.springframework.boot.devtools.filewatch.ChangedFiles
- All Implemented Interfaces:
Iterable<ChangedFile>
public final class ChangedFiles extends Object implements Iterable<ChangedFile>
A collections of files from a specific source folder that have changed.- Since:
- 1.3.0
- See Also:
FileChangeListener
,ChangedFiles
Constructor Summary
Constructors Constructor Description ChangedFiles(File sourceFolder, Set<ChangedFile> files)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Set<ChangedFile>
getFiles()
The files that have been changed.File
getSourceFolder()
The source folder being watched.int
hashCode()
Iterator<ChangedFile>
iterator()
String
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Constructor Detail
ChangedFiles
public ChangedFiles(File sourceFolder, Set<ChangedFile> files)
Method Detail
getSourceFolder
public File getSourceFolder()
The source folder being watched.- Returns:
- the source folder
iterator
public Iterator<ChangedFile> iterator()
- Specified by:
iterator
in interfaceIterable<ChangedFile>
getFiles
public Set<ChangedFile> getFiles()
The files that have been changed.- Returns:
- the changed files