Package org.opencastproject.list.util
Class ListProviderUtil
java.lang.Object
org.opencastproject.list.util.ListProviderUtil
-
Method Summary
Modifier and TypeMethodDescriptionfilterMap(Map<String, String> map, ResourceListQuery query) Filtered a simple map with the given query using the limit and offset parametersInvert the key & value in the given mapsortMapByValue(Map<String, String> map, boolean asc) Sorts the given map by its values, ascendantly or not
-
Method Details
-
sortMapByValue
Sorts the given map by its values, ascendantly or not- Parameters:
map- The map to sortasc- If the sorting should be done ascendantly (true) or not- Returns:
- a sorted map
-
filterMap
Filtered a simple map with the given query using the limit and offset parameters- Parameters:
map- The map to filterquery- The query- Returns:
- the filtered map
-
invertMap
Invert the key & value in the given map- Parameters:
map- the map to invert- Returns:
- an inverted map
-