Package com.jms.socialmedia.model
Class Comment
- java.lang.Object
-
- com.jms.socialmedia.model.Entry
-
- com.jms.socialmedia.model.Comment
-
- All Implemented Interfaces:
Comparable<Comment>
public class Comment extends Entry implements Comparable<Comment>
-
-
Constructor Summary
Constructors Constructor Description Comment()
Comment(Integer commentId, Integer postId, Integer userId, String username, String fullName, String text, LocalDateTime timestamp)
Comment(Integer postId, Integer userId, String text)
Comment(Integer commentId, Integer postId, String text, LocalDateTime timestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Comment other)
boolean
equals(Object object)
Integer
getCommentId()
int
hashCode()
void
setCommentId(Integer commentId)
String
toString()
-
Methods inherited from class com.jms.socialmedia.model.Entry
addLike, getFullName, getLikes, getPostId, getProfilePictureLink, getText, getTimestamp, getUserId, getUsername, hasPostId, hasText, hasUserId, removeLike, setFullName, setLikes, setPostId, setProfilePictureLink, setText, setTimestamp, setUserId, setUsername
-
-
-
-
Constructor Detail
-
Comment
public Comment()
-
Comment
public Comment(Integer commentId, Integer postId, String text, LocalDateTime timestamp)
-
-