public final class ChangedFile extends Object
ChangedFiles
Modifier and Type | Class and Description |
---|---|
static class |
ChangedFile.Type
Change types.
|
Constructor and Description |
---|
ChangedFile(File sourceDirectory,
File file,
ChangedFile.Type type)
Create a new
ChangedFile instance. |
Modifier and Type | Method and 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 directory.
|
ChangedFile.Type |
getType()
Return the type of change.
|
int |
hashCode() |
String |
toString() |
public ChangedFile(File sourceDirectory, File file, ChangedFile.Type type)
ChangedFile
instance.sourceDirectory
- the source directoryfile
- the filetype
- the type of changepublic File getFile()
public ChangedFile.Type getType()
public String getRelativeName()