Package org.javimmutable.collections
Class IListMaps
java.lang.Object
org.javimmutable.collections.IListMaps
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> IListMap <K, V> hashed()
Creates a list map with higher performance but no specific ordering of keys.static <K,
V> IListMap <K, V> ordered()
Creates a list map with keys sorted by order they are inserted.static <K extends Comparable<K>,
V>
IListMap<K, V> sorted()
Creates a list map with keys sorted by their natural ordering.static <K,
V> IListMap <K, V> sorted
(Comparator<K> comparator) Creates a list map with keys sorted by the specified Comparator.
-
Method Details
-
hashed
Creates a list map with higher performance but no specific ordering of keys. -
ordered
Creates a list map with keys sorted by order they are inserted. -
sorted
Creates a list map with keys sorted by their natural ordering. -
sorted
Creates a list map with keys sorted by the specified Comparator. The Comparator MUST BE IMMUTABLE.
-