Class LikesSorter


  • public class LikesSorter
    extends Object
    Sorts a collection of likes - moving likes from followees higher.
    • Constructor Detail

      • LikesSorter

        public LikesSorter()
    • Method Detail

      • sort

        public List<Like> sort​(Collection<Like> likes,
                               Set<String> followees)
        Returns a sorted list of likes.
        Parameters:
        likes - the likes
        followees - a set of usernames the current user is following
        Returns:
        a sorted list of likes.