Uses of Interface
org.javimmutable.collections.IMap
Package
Description
-
Uses of IMap in org.javimmutable.collections
Modifier and TypeMethodDescriptionSets the value associated with a specific key.Copies all key-value pairs from the given map.Copies all key-value pairs from the given map.IMapBuilder.build()
Deletes the entry for the specified key (if any).IMap.deleteAll()
static <K,
V> IMap <K, V> IMaps.hashed()
Constructs an empty unsorted map.static <K,
V> IMap <K, V> Constructs an unsorted map.static <K,
V> IMap <K, V> Constructs an unsorted map.Add key/value entry to the map, replacing any existing entry with same key.Adds the values to the end of the list in the same order they appear in the Iterable.Adds the values to the end of the list in the same order they appear in the Iterable.static <K,
V> IMap <K, V> IMaps.ordered()
Constructs an empty map whose iterators traverse elements in the same order that they were originally added to the map.static <K,
V> IMap <K, V> Constructs a map whose iterators traverse elements in the same order that they were originally added to the map.static <K,
V> IMap <K, V> Constructs a map whose iterators traverse elements in the same order that they were originally added to the map.Returns a map of the same type as this containing all those elements for which predicate returns false.Returns a map of the same type as this containing only those elements for which predicate returns true.static <K extends Comparable<K>,
V>
IMap<K, V> IMaps.sorted()
Constructs an empty map that sorts keys in their natural sort order (using ComparableComparator).static <K,
V> IMap <K, V> IMaps.sorted
(Comparator<K> comparator) Constructs a map that sorts keys using the specified Comparator.static <K,
V> IMap <K, V> IMaps.sorted
(Comparator<K> comparator, Map<K, V> source) Constructs a map that sorts keys using the specified Comparator.static <K,
V> IMap <K, V> IMaps.sorted
(Comparator<K> comparator, IMap<K, V> source) Constructs a map that sorts keys using the specified Comparator.static <K extends Comparable<K>,
V>
IMap<K, V> Constructs a map that sorts keys in their natural sort order (using ComparableComparator).static <K extends Comparable<K>,
V>
IMap<K, V> Constructs a map that sorts keys in their natural sort order (using ComparableComparator).Update the value at the key.Modifier and TypeMethodDescriptionIMap.mapCollector()
Returns a Collector that creates a set of the same type as this containing all of the collected values inserted over whatever starting values this already contained.ICollectors.toMap()
Creates a Collector suitable for use in the stream to produce a map.ICollectors.toOrderedMap()
Creates a Collector suitable for use in the stream to produce an insert order map.static <K extends Comparable<K>,
V>
java.util.stream.Collector<IMapEntry<K, V>, ?, IMap<K, V>> ICollectors.toSortedMap()
Creates a Collector suitable for use in the stream to produce a sorted map.static <K extends Comparable<K>,
V>
java.util.stream.Collector<IMapEntry<K, V>, ?, IMap<K, V>> ICollectors.toSortedMap
(Comparator<K> comparator) Creates a Collector suitable for use in the stream to produce a sorted map.Modifier and TypeMethodDescriptionCopies all key-value pairs from the given map.static <K,
V> IMap <K, V> Constructs an unsorted map.static <K,
V> IMap <K, V> Constructs a map whose iterators traverse elements in the same order that they were originally added to the map.static <K,
V> IMap <K, V> IMaps.sorted
(Comparator<K> comparator, IMap<K, V> source) Constructs a map that sorts keys using the specified Comparator.static <K extends Comparable<K>,
V>
IMap<K, V> Constructs a map that sorts keys in their natural sort order (using ComparableComparator).static <K,
V> ISetMap <K, V> Creates a set map using the provided templates for map and set. -
Uses of IMap in org.javimmutable.collections.common
Modifier and TypeMethodDescriptionAdds the key/value pair to this map.Modifier and TypeMethodDescriptionImplemented by derived classes to create a new instance of the appropriate class.Implemented by derived classes to create a new instance of the appropriate class.static <K,
V> MapAdaptor <K, V> ModifierConstructorDescriptionprotected
AbstractMultiset
(IMap<T, Integer> map, int occurrences) AbstractSetUsingMap
(IMap<T, Boolean> map) MapAdaptor
(IMap<K, V> map) ModifierConstructorDescriptionGenericSetBuilder
(IMapBuilder<T, Boolean> mapBuilder, Func1<IMap<T, Boolean>, ISet<T>> setFactory) -
Uses of IMap in org.javimmutable.collections.hash
Modifier and TypeClassDescriptionclass
EmptyHashMap<K,
V> Singleton implementation ofIMap
that contains no elements.class
HashMap<T,
K, V> Modifier and TypeMethodDescriptionHashMap.Builder.build()
EmptyHashMap.deleteAll()
HashMap.deleteAll()
static <K,
V> IMap <K, V> HashMap.forKey
(K key) Returns an empty map using the appropriate collision handling strategy for the given key's class.static <K,
V> IMap <K, V> Returns an empty map using the appropriate collision handling strategy for keys of the given class.static <K,
V> IMap <K, V> HashMap.usingList()
Returns an empty map using linked lists for handling hash code collisions.static <K extends Comparable<K>,
V>
IMap<K, V> HashMap.usingTree()
Returns an empty map using linked lists for handling hash code collisions. -
Uses of IMap in org.javimmutable.collections.inorder
Modifier and TypeClassDescriptionclass
OrderedMap<K,
V> IMap
implementation that allows iteration over members in the order in which they were inserted into the map. -
Uses of IMap in org.javimmutable.collections.listmap
Modifier and TypeFieldDescriptionAbstractListMap.contents
AbstractListMap.contents
AbstractListMap.contents
-
Uses of IMap in org.javimmutable.collections.serialization
-
Uses of IMap in org.javimmutable.collections.setmap
Modifier and TypeFieldDescriptionAbstractSetMap.contents
AbstractSetMap.contents
AbstractSetMap.contents
AbstractSetMap.contents
-
Uses of IMap in org.javimmutable.collections.tree
Modifier and TypeMethodDescriptionstatic <K extends Comparable<K>,
V>
java.util.stream.Collector<IMapEntry<K, V>, ?, IMap<K, V>> TreeMap.createMapCollector()
TreeMap.createMapCollector
(Comparator<K> comparator) -
Uses of IMap in org.javimmutable.collections.util