Package com.jms.socialmedia.model
Class Post
- java.lang.Object
-
- com.jms.socialmedia.model.Entry
-
- com.jms.socialmedia.model.Post
-
- All Implemented Interfaces:
Comparable<Post>
public class Post extends Entry implements Comparable<Post>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Post other)
boolean
equals(Object object)
int
hashCode()
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
-
Post
public Post()
-
Post
public Post(Integer postId)
-
Post
public Post(Integer postId, String text, LocalDateTime timestamp)
-
-
Method Detail
-
compareTo
public int compareTo(Post other)
- Specified by:
compareTo
in interfaceComparable<Post>
-
-