Class Comment

    • Constructor Detail

      • Comment

        public Comment​(String message,
                       User commenter)
        creates comment object
        Parameters:
        message - user input
        commenter - takes username of the person logged in while making the comment
    • Method Detail

      • getMessage

        public String getMessage()
        gets the message from the comment
        Returns:
        String message
      • setMessage

        public void setMessage​(String message)
        replaces the current message with message passed through
        Parameters:
        message - String message
      • getCommenter

        public User getCommenter()
        gets the user object associated with the comment
        Returns:
        User
      • setCommenter

        public void setCommenter​(User commenter)
        sets the User of the comment
        Parameters:
        commenter - User object of which user commented
      • printableComment

        public String printableComment()
        takes comment object and makes it easily displayable by converting to strings
        Returns:
        string of info from the object