Class FileModification
- java.lang.Object
-
- jetbrains.buildServer.changeTracking.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 Summary
Constructors Constructor Description FileModification(String userId, String originalRevision, String patch)
Constructs an object with the given properties
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getOriginalRevision()
the file revision being editedString
getPatch()
The modification in the unified patch formatString
getUserId()
The string representation of user idint
hashCode()
-
-
-
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 nullpatch
- 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
-
-