Class LikesSorter

java.lang.Object
com.atlassian.confluence.plugins.like.LikesSorter

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

    • LikesSorter

      public LikesSorter()
  • Method Details

    • 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.