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
Author:
Phillip Webb
See Also:
  • Constructor Details

    • ChangedFile

      public ChangedFile(File sourceDirectory, File file, ChangedFile.Type type)
      Create a new ChangedFile instance.
      Parameters:
      sourceDirectory - the source directory
      file - the file
      type - the type of change
  • Method Details

    • getFile

      public File getFile()
      Return the file that was changed.
      Returns:
      the file
    • 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 directory.
      Returns:
      the relative name
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object