Package in.cs699.tensors.delagram.entity
Class Comment
- java.lang.Object
-
- in.cs699.tensors.delagram.entity.Comment
-
public class Comment extends Object
A Java POJO to represent a comment object- Author:
- swaroop_nath
-
-
Constructor Summary
Constructors Constructor Description Comment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCommentId()Getter method for comment idStringgetCommentorId()Getter method for the user id who commentedStringgetCommentText()Getter method for the text in the commentStringgetTimestamp()Getter method for the time at which the comment was madevoidsetCommentId(String commentId)Setter method for comment idvoidsetCommentor(String commentorId)Setter method for the user id who commentedvoidsetCommentText(String commentText)Setter method for the text in the commentvoidsetTimestamp(String timestamp)Setter method for the time at which the comment was made
-
-
-
Method Detail
-
getCommentId
public String getCommentId()
Getter method for comment id- Returns:
- Returns the comment id
-
setCommentId
public void setCommentId(String commentId)
Setter method for comment id- Parameters:
commentId- The id that is to be set
-
getCommentorId
public String getCommentorId()
Getter method for the user id who commented- Returns:
- Returns the user id
-
setCommentor
public void setCommentor(String commentorId)
Setter method for the user id who commented- Parameters:
commentorId- The id of the user who commented
-
getCommentText
public String getCommentText()
Getter method for the text in the comment- Returns:
- Returns the text
-
setCommentText
public void setCommentText(String commentText)
Setter method for the text in the comment- Parameters:
commentText- The text in the comment
-
getTimestamp
public String getTimestamp()
Getter method for the time at which the comment was made- Returns:
- Returns a stringified version of the time. Refer
EnvironmentConfigurerfor the format.
-
setTimestamp
public void setTimestamp(String timestamp)
Setter method for the time at which the comment was made- Parameters:
timestamp- The stringified version of the time. ReferEnvironmentConfigurerfor the format.
-
-