Examples of StreamDTOFollowerCountDescendingComparator


Examples of org.eurekastreams.server.persistence.comparators.StreamDTOFollowerCountDescendingComparator

            q.setMaxResults(streamCount).getResultList();
        }
        results.addAll(q.getResultList());

        // sort the list
        Collections.sort(results, new StreamDTOFollowerCountDescendingComparator());
        if (results.size() > streamCount)
        {
            results = results.subList(0, streamCount);
        }
        return results;
View Full Code Here

Examples of org.eurekastreams.server.persistence.comparators.StreamDTOFollowerCountDescendingComparator

        suggestions.addAll(suggestedPersonMapper.execute(mapperRequest));
        suggestions.addAll(suggestedGroupMapper.execute(mapperRequest));

        // sort the list
        Collections.sort(suggestions, new StreamDTOFollowerCountDescendingComparator());

        // return those requested
        if (suggestions.size() > suggestionCount)
        {
            suggestions = new ArrayList<StreamDTO>(suggestions.subList(0, suggestionCount));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.