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