Package com._1c.g5.v8.dt.compare.git
Class FileDiff
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.git.FileDiff
-
public class FileDiff extends Object
Represents a file Git change.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileDiff.ChangeTypeThe change type of single file.
-
Constructor Summary
Constructors Constructor Description FileDiff(String path, FileDiff.ChangeType changeType)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)FileDiff.ChangeTypegetChangeType()Returns the change type.StringgetPath()Returns the file name this diff accociated with.inthashCode()
-
-
-
Constructor Detail
-
FileDiff
public FileDiff(String path, FileDiff.ChangeType changeType)
Creates a new instance.- Parameters:
path- the modified/added/deleted file name, cannot benullchangeType- the change type, cannot benull
-
-
Method Detail
-
getPath
public String getPath()
Returns the file name this diff accociated with.- Returns:
- the file name, never
null
-
getChangeType
public FileDiff.ChangeType getChangeType()
Returns the change type.- Returns:
- the change type, never
null
-
-