public class FileEditCommentDetails
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
commentText |
protected java.lang.String |
previousCommentText |
Constructor and Description |
---|
FileEditCommentDetails(java.lang.String previousCommentText)
Edited file comment.
|
FileEditCommentDetails(java.lang.String previousCommentText,
java.lang.String commentText)
Edited file comment.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCommentText()
Comment text.
|
java.lang.String |
getPreviousCommentText()
Previous comment text.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String commentText
protected final java.lang.String previousCommentText
public FileEditCommentDetails(java.lang.String previousCommentText, java.lang.String commentText)
previousCommentText
- Previous comment text. Must not be null
.commentText
- Comment text. Might be missing due to historical data
gap.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FileEditCommentDetails(java.lang.String previousCommentText)
The default values for unset fields will be used.
previousCommentText
- Previous comment text. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getPreviousCommentText()
null
.public java.lang.String getCommentText()
null
if not present.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.