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 class
FileDiff.ChangeType
The 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 boolean
equals(Object obj)
FileDiff.ChangeType
getChangeType()
Returns the change type.String
getPath()
Returns the file name this diff accociated with.int
hashCode()
-
-
-
Constructor Detail
-
FileDiff
public FileDiff(String path, FileDiff.ChangeType changeType)
Creates a new instance.- Parameters:
path
- the modified/added/deleted file name, cannot benull
changeType
- 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
-
-