类 ChangedFile

java.lang.Object
org.springframework.boot.devtools.filewatch.ChangedFile

public final class ChangedFile extends Object
A single file that has changed.
从以下版本开始:
1.3.0
作者:
Phillip Webb
另请参阅:
  • 构造器详细资料

    • ChangedFile

      public ChangedFile(File sourceDirectory, File file, ChangedFile.Type type)
      Create a new ChangedFile instance.
      参数:
      sourceDirectory - the source directory
      file - the file
      type - the type of change
  • 方法详细资料

    • getFile

      public File getFile()
      Return the file that was changed.
      返回:
      the file
    • getType

      public ChangedFile.Type getType()
      Return the type of change.
      返回:
      the type of change
    • getRelativeName

      public String getRelativeName()
      Return the name of the file relative to the source directory.
      返回:
      the relative name
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object