jetbrains.buildServer.changeTracking
Class FileModification

java.lang.Object
  extended by jetbrains.buildServer.changeTracking.FileModification

public class FileModification
extends java.lang.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 Summary
FileModification(java.lang.String userId, java.lang.String originalRevision, java.lang.String patch)
          Constructs an object with the given properties
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getOriginalRevision()
          the file revision being edited
 java.lang.String getPatch()
          The modification in the unified patch format
 java.lang.String getUserId()
          The string representation of user id
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileModification

public FileModification(java.lang.String userId,
                        java.lang.String originalRevision,
                        java.lang.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 java.lang.String getUserId()
The string representation of user id

Returns:
see above

getOriginalRevision

public java.lang.String getOriginalRevision()
the file revision being edited

Returns:
see above

getPatch

public java.lang.String getPatch()
The modification in the unified patch format

Returns:
see above

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object