Class FileDiff

java.lang.Object
com.perforce.p4java.core.file.FileDiff
All Implemented Interfaces:
IFileDiff

public class FileDiff extends Object implements IFileDiff
  • Constructor Details

    • FileDiff

      public FileDiff(Map<String,Object> map)
      Create a new file diff with the values from the specified map
      Parameters:
      map - map
  • Method Details

    • getStatus

      public IFileDiff.Status getStatus()
      Description copied from interface: IFileDiff
      Get status of file diff
      Specified by:
      getStatus in interface IFileDiff
      Returns:
      status
    • getDepotFile1

      public String getDepotFile1()
      Description copied from interface: IFileDiff
      Get depot path of first file in diff
      Specified by:
      getDepotFile1 in interface IFileDiff
      Returns:
      depot file path
    • getDepotFile2

      public String getDepotFile2()
      Description copied from interface: IFileDiff
      Get depot path of second file in diff
      Specified by:
      getDepotFile2 in interface IFileDiff
      Returns:
      depot file path
    • getRevision1

      public int getRevision1()
      Description copied from interface: IFileDiff
      Get revision of first file in diff
      Specified by:
      getRevision1 in interface IFileDiff
      Returns:
      revision number
    • getRevision2

      public int getRevision2()
      Description copied from interface: IFileDiff
      Get revision of second file in diff
      Specified by:
      getRevision2 in interface IFileDiff
      Returns:
      revision number
    • getFileType1

      public String getFileType1()
      Description copied from interface: IFileDiff
      Get file type of first file in diff
      Specified by:
      getFileType1 in interface IFileDiff
      Returns:
      file type
    • getFileType2

      public String getFileType2()
      Description copied from interface: IFileDiff
      Get file type of second file in diff
      Specified by:
      getFileType2 in interface IFileDiff
      Returns:
      file type