public class Comment extends CommentHeader
| Constructor and Description |
|---|
Comment()
Default constructor
|
Comment(Comment template)
Copy/clone constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Equals method that returns true if containing properties are the same.
|
List<String> |
getAnsweredBy()
Return the list of unique identifiers (guids) for comments that answer a question posed in this comment.
|
List<String> |
getAnswers()
Return the list of unique identifiers (guids) for comments that contain a question that this comment answers.
|
CommentType |
getCommentType()
Return the type of comment this is.
|
int |
hashCode()
Hash code for this object
|
void |
setAnsweredBy(List<String> answeredBy)
Set up the list of unique identifiers (guids) for comments that answer a question posed in this comment.
|
void |
setAnswers(List<String> answers)
Set up the list of unique identifiers (guids) for comments that contain a question that this comment answers.
|
void |
setCommentType(CommentType commentType)
Set up the type of comment this is.
|
String |
toString()
JSON-style toString.
|
getAdditionalProperties, getExtendedProperties, getQualifiedName, getText, setAdditionalProperties, setExtendedProperties, setQualifiedName, setTextgetUserId, setUserIdgetGUID, setGUIDgetOriginId, getOriginLicense, getOriginName, getOriginType, getTypeDescription, getTypeName, setOriginId, setOriginLicense, setOriginName, setOriginType, setTypeDescription, setTypeNamepublic Comment()
public Comment(Comment template)
template - object to copypublic CommentType getCommentType()
public void setCommentType(CommentType commentType)
commentType - comment type enumpublic List<String> getAnsweredBy()
public void setAnsweredBy(List<String> answeredBy)
answeredBy - list of guidspublic List<String> getAnswers()
public void setAnswers(List<String> answers)
answers - list of guidspublic String toString()
toString in class CommentHeaderpublic boolean equals(Object objectToCompare)
equals in class CommentHeaderobjectToCompare - object to comparepublic int hashCode()
hashCode in class CommentHeaderCopyright © 2018–2020 ODPi. All rights reserved.