public class RecordComment
extends Object
Constructor and Description |
---|
RecordComment() |
RecordComment(String text) |
RecordComment(String text,
List<Entity> mentions)
Creates a new
RecordComment instance. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<Entity> |
getMentions()
A list including information to mention other users (optional).
|
String |
getText()
The comment text (required).
|
int |
hashCode() |
RecordComment |
setMentions(List<Entity> mentions)
A list including information to mention other users (optional).
|
RecordComment |
setText(String text)
The comment text (required).
|
String |
toString() |
public RecordComment(String text)
public RecordComment()
@ConstructorProperties(value={"text","mentions"}) public RecordComment(String text, List<Entity> mentions)
RecordComment
instance.text
- The comment text (required).mentions
- A list including information to mention other users (optional).public String getText()
public List<Entity> getMentions()
public RecordComment setText(String text)
this
.public RecordComment setMentions(List<Entity> mentions)
this
.public boolean equals(Object o)
equals
in class Object
protected boolean canEqual(Object other)
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object