|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rometools.feed.module.sle.SleUtility
public class SleUtility
This is a utiltiy class for grouping and sorting lists of entries based on the SLE.
Note, this class can ONLY be used on parsed feeds, unless you manually add the appropriate SleEntry objects on the items.
SleEntry
Method Summary | |
---|---|
static List |
group(List values,
Group[] groups)
Groups values by the groups from the SLE. |
static void |
initializeForSorting(com.sun.syndication.feed.synd.SyndFeed feed)
This method will take a SyndFeed object with a SimpleListExtension on it and populate the entries with current SleEntry values for sorting and grouping. |
static List |
sort(List values,
Sort sort,
boolean ascending)
Sorts a list of values based on a given sort field using a selection sort. |
static List |
sortAndGroup(List values,
Group[] groups,
Sort sort,
boolean ascending)
Sorts and groups a set of entries. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static List group(List values, Group[] groups)
values
- List of Extendable implementations to group.groups
- Group fields (from the SimpleListExtension module)
public static List sort(List values, Sort sort, boolean ascending)
values
- List of values (implements Extendable) to sort.sort
- The sort field to sort on.ascending
- Sort ascending/descending.
public static List sortAndGroup(List values, Group[] groups, Sort sort, boolean ascending)
values
- List of Extendable implementations.groups
- Group items to group by.sort
- Field to sort on.ascending
- Sort ascending/descending
public static void initializeForSorting(com.sun.syndication.feed.synd.SyndFeed feed) throws com.sun.syndication.io.FeedException
com.sun.syndication.io.FeedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |