postTweet
, add the tweet with a timestamp to the user's tweet list in the HashMap.getNewsFeed
, use a PriorityQueue to fetch the 10 most recent tweets from the user and the users they follow.follow
, add the followee to the follower's set in the followings HashMap.unfollow
, remove the followee from the follower's set in the followings HashMap.