public final class SleUtility
extends java.lang.Object
Note, this class can ONLY be used on parsed feeds, unless you manually add the appropriate SleEntry objects on the items.
SleEntry| Modifier and Type | Method and Description |
|---|---|
static <T extends Extendable> |
group(java.util.List<T> values,
Group[] groups)
Groups values by the groups from the SLE.
|
static void |
initializeForSorting(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 <T extends Extendable> |
sort(java.util.List<T> values,
Sort sort,
boolean ascending)
Sorts a list of values based on a given sort field using a selection sort.
|
static <T extends Extendable> |
sortAndGroup(java.util.List<T> values,
Group[] groups,
Sort sort,
boolean ascending)
Sorts and groups a set of entries.
|
public static <T extends Extendable> java.util.List<T> group(java.util.List<T> values, Group[] groups)
values - List of Extendable implementations to group.groups - Group fields (from the SimpleListExtension module)public static <T extends Extendable> java.util.List<T> sort(java.util.List<T> 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 <T extends Extendable> java.util.List<T> sortAndGroup(java.util.List<T> 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/descendingpublic static void initializeForSorting(SyndFeed feed) throws FeedException
FeedExceptionCopyright © 2025. All rights reserved.