com.atlassian.confluence.plugins.like
Class LikesSorter

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

public class LikesSorter
extends java.lang.Object

Sorts a collection of likes - moving likes from followees higher.


Constructor Summary
LikesSorter()
           
 
Method Summary
 java.util.List<Like> sort(java.util.Collection<Like> likes, java.util.Set<java.lang.String> followees)
          Returns a sorted list of likes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LikesSorter

public LikesSorter()
Method Detail

sort

public java.util.List<Like> sort(java.util.Collection<Like> likes,
                                 java.util.Set<java.lang.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.


Copyright © 2003-2014 Atlassian. All Rights Reserved.