Class Comment


  • public class Comment
    extends Object
    A Java POJO to represent a comment object
    Author:
    swaroop_nath
    • Constructor Detail

      • Comment

        public Comment()
    • 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 EnvironmentConfigurer for 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. Refer EnvironmentConfigurer for the format.