Uses of Interface
org.javimmutable.collections.IListMap
Package
Description
-
Uses of IListMap in org.javimmutable.collections
Modifier and TypeMethodDescriptionSets the list associated with a specific key.Deletes the entry for the specified key (if any).IListMap.deleteAll()
Deletes the list for every key in keys.Deletes the list for every key in keys.static <K,
V> IListMap <K, V> IListMaps.hashed()
Creates a list map with higher performance but no specific ordering of keys.Add value to the list for the specified key.Add key/value entry to the map, replacing any existing entry with same key.Adds all of the elements of the specified collection to the List for the specified key.Adds all of the elements of the specified collection to the List for the specified key.static <K,
V> IListMap <K, V> IListMaps.ordered()
Creates a list map with keys sorted by order they are inserted.static <K extends Comparable<K>,
V>
IListMap<K, V> IListMaps.sorted()
Creates a list map with keys sorted by their natural ordering.static <K,
V> IListMap <K, V> IListMaps.sorted
(Comparator<K> comparator) Creates a list map with keys sorted by the specified Comparator.Apply the specified transform function to the List assigned to the specified key and assign the result to the key in this map.Apply the specified transform function to the List assigned to the specified key and assign the result to the key in this map.Modifier and TypeMethodDescriptionstatic <T,
K> java.util.stream.Collector <T, ?, IListMap<K, T>> ICollectors.groupingBy
(java.util.function.Function<? super T, ? extends K> classifier) Collects values into a hashedIListMap
using the specified classifier function to generate keys from the encountered elements.IListMap.listMapCollector()
Returns a Collector that creates a listMap of the same type as this containing all of the collected values inserted over whatever starting values this already contained.ICollectors.toListMap()
ICollectors.toOrderedListMap()
static <K extends Comparable<K>,
V>
java.util.stream.Collector<IMapEntry<K, V>, ?, IListMap<K, V>> ICollectors.toSortedListMap()
static <K extends Comparable<K>,
V>
java.util.stream.Collector<IMapEntry<K, V>, ?, IListMap<K, V>> ICollectors.toSortedListMap
(Comparator<K> comparator) -
Uses of IListMap in org.javimmutable.collections.listmap
Modifier and TypeClassDescriptionclass
HashListMap<K,
V> IListMap
using a hash map for fast lookup.class
OrderedListMap<K,
V> IListMap
implementation that allows keys to be traversed in the same order as they were inserted into the collection.class
TreeListMap<K,
V> IListMap
implementation that allows keys to be traversed in sorted order using a Comparator of the natural ordering of the keys if they implement Comparable. -
Uses of IListMap in org.javimmutable.collections.serialization