use of com.entwinemedia.fn.data.ImmutableListWrapper in project opencast by opencast.
the class DublinCoreUtil method getPropertiesSorted.
/**
* Return a sorted list of all catalog entries.
*/
public static List<CatalogEntry> getPropertiesSorted(DublinCoreCatalog dc) {
final List<EName> properties = new ArrayList<>(dc.getProperties());
Collections.sort(properties);
final List<CatalogEntry> entries = new ArrayList<>();
for (final EName property : properties) {
Collections.addAll(entries, dc.getValues(property));
}
return new ImmutableListWrapper<>(entries);
}
Aggregations