Class FileDiff

java.lang.Object
com._1c.g5.v8.dt.compare.git.FileDiff

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

    • 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 Details

    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object