Package net.lenni0451.imnbt.utils
Class CollectionUtils
java.lang.Object
net.lenni0451.imnbt.utils.CollectionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V> LinkedHashMap<K, V> sort(Map<K, V> map, Comparator<Map.Entry<K, V>> comparator) Sort a map.
-
Constructor Details
-
CollectionUtils
public CollectionUtils()
-
-
Method Details
-
sort
Sort a map.- Type Parameters:
K- The key typeV- The value type- Parameters:
map- The map to sortcomparator- The comparator to use- Returns:
- The sorted map
-