Uses of Interface
org.javimmutable.collections.IMap
Packages that use IMap
Package
Description
-
Uses of IMap in org.javimmutable.collections
Methods in org.javimmutable.collections that return IMapModifier 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.Methods in org.javimmutable.collections that return types with arguments of type IMapModifier 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.Methods in org.javimmutable.collections with parameters of type IMapModifier 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
Classes in org.javimmutable.collections.common that implement IMapFields in org.javimmutable.collections.common declared as IMapMethods in org.javimmutable.collections.common that return IMapModifier and TypeMethodDescriptionAdds the key/value pair to this map.Methods in org.javimmutable.collections.common with parameters of type IMapModifier 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> Constructors in org.javimmutable.collections.common with parameters of type IMapModifierConstructorDescriptionprotected
AbstractMultiset
(IMap<T, Integer> map, int occurrences) AbstractSetUsingMap
(IMap<T, Boolean> map) MapAdaptor
(IMap<K, V> map) Constructor parameters in org.javimmutable.collections.common with type arguments of type IMapModifierConstructorDescriptionGenericSetBuilder
(IMapBuilder<T, Boolean> mapBuilder, Func1<IMap<T, Boolean>, ISet<T>> setFactory) -
Uses of IMap in org.javimmutable.collections.hash
Classes in org.javimmutable.collections.hash that implement IMapModifier and TypeClassDescriptionclass
EmptyHashMap<K,
V> Singleton implementation ofIMap
that contains no elements.class
HashMap<T,
K, V> Methods in org.javimmutable.collections.hash that return IMapModifier 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.Methods in org.javimmutable.collections.hash that return types with arguments of type IMapMethods in org.javimmutable.collections.hash with parameters of type IMap -
Uses of IMap in org.javimmutable.collections.inorder
Classes in org.javimmutable.collections.inorder that implement IMapModifier and TypeClassDescriptionclass
OrderedMap<K,
V> IMap
implementation that allows iteration over members in the order in which they were inserted into the map.Methods in org.javimmutable.collections.inorder that return types with arguments of type IMapMethods in org.javimmutable.collections.inorder with parameters of type IMap -
Uses of IMap in org.javimmutable.collections.listmap
Fields in org.javimmutable.collections.listmap declared as IMapModifier and TypeFieldDescriptionAbstractListMap.contents
AbstractListMap.contents
AbstractListMap.contents
Methods in org.javimmutable.collections.listmap with parameters of type IMap -
Uses of IMap in org.javimmutable.collections.serialization
Fields in org.javimmutable.collections.serialization declared as IMapModifier and TypeFieldDescriptionprotected IMap
AbstractMapProxy.map
protected IMap
AbstractMapProxy.map
protected IMap
AbstractMapProxy.map
Methods in org.javimmutable.collections.serialization that return IMap -
Uses of IMap in org.javimmutable.collections.setmap
Fields in org.javimmutable.collections.setmap declared as IMapModifier and TypeFieldDescriptionAbstractSetMap.contents
AbstractSetMap.contents
AbstractSetMap.contents
AbstractSetMap.contents
Methods in org.javimmutable.collections.setmap that return IMapMethods in org.javimmutable.collections.setmap with parameters of type IMap -
Uses of IMap in org.javimmutable.collections.tree
Classes in org.javimmutable.collections.tree that implement IMapMethods in org.javimmutable.collections.tree that return types with arguments of type IMapModifier and TypeMethodDescriptionstatic <K extends Comparable<K>,
V>
java.util.stream.Collector<IMapEntry<K, V>, ?, IMap<K, V>> TreeMap.createMapCollector()
TreeMap.createMapCollector
(Comparator<K> comparator) Methods in org.javimmutable.collections.tree with parameters of type IMap -
Uses of IMap in org.javimmutable.collections.util
Methods in org.javimmutable.collections.util that return IMapMethods in org.javimmutable.collections.util with parameters of type IMap