Class FileDiff


  • public class FileDiff
    extends Object
    Represents a file Git change.
    • Constructor Detail

      • FileDiff

        public FileDiff​(String path,
                        FileDiff.ChangeType changeType)
        Creates a new instance.
        Parameters:
        path - the modified/added/deleted file name, cannot be null
        changeType - the change type, cannot be null
    • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object