Class FileModification


  • public class FileModification
    extends Object
    Describes a modification made on a particular file. Used as a transfer object over XML-RPC. Description includes a user id and the file diff in the unified patch format
    Author:
    Sergey.Anchipolevsky Date: 16.04.2008
    • Constructor Detail

      • FileModification

        public FileModification​(String userId,
                                String originalRevision,
                                String patch)
        Constructs an object with the given properties
        Parameters:
        userId - string representation of user id (long converted to string). Not null.
        originalRevision - the file revision being edited. Not null
        patch - the unified patch. Not null.
    • Method Detail

      • getUserId

        public String getUserId()
        The string representation of user id
        Returns:
        see above
      • getOriginalRevision

        public String getOriginalRevision()
        the file revision being edited
        Returns:
        see above
      • getPatch

        public String getPatch()
        The modification in the unified patch format
        Returns:
        see above
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object