Modifier and Type | Method and Description |
---|---|
static <T extends Extendable> |
group(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(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(List<T> values,
Group[] groups,
Sort sort,
boolean ascending)
Sorts and groups a set of entries.
|
public static <T extends Extendable> List<T> group(List<T> values, Group[] groups)
values
- List of Extendable implementations to group.groups
- Group fields (from the SimpleListExtension module)public static <T extends Extendable> List<T> sort(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> List<T> sortAndGroup(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
FeedException
Copyright © 2023. All rights reserved.