Uses of Interface
org.javimmutable.collections.IMapEntry
Package
Description
-
Uses of IMapEntry in org.javimmutable.collections
Modifier and TypeMethodDescriptionIMapBuilder.add
(T... source) Adds all values in the array to the values included in the collection when build() is called.Modifier and TypeMethodDescriptionMapEntry.asIMapEntry()
static <K,
V> IMapEntry <K, V> MapEntry.entry
(K key, V value) static <K,
V> IMapEntry <K, V> static <K,
V> IMapEntry <K, V> IMapEntry.of
(K key, V value) static <K,
V> IMapEntry <K, V> Modifier and TypeMethodDescriptionIStreamable
<IMapEntry<K, IList<V>>> IListMap.entries()
Creates an IStreamable to access all of the Map's entries.IMultiset.entries()
Stream iterates through each Entry, that contains a unique value and the count of occurrences.IStreamable
<IMapEntry<K, ISet<V>>> ISetMap.entries()
Creates an IStreamable to access all of the Map's entries.IArray.findEntry
(int index) Search for an Entry within the map and return a Holder indicating if the Entry was found and, if it was found, the Entry itself.Search for an Entry within the map and return a Holder indicating if the Entry was found and, if it was found, the Entry itself.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.IMap.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.ISetMap.setMapCollector()
Returns a Collector that creates a setMap of the same type as this containing all of the collected values inserted over whatever starting values this already contained.MapEntry.toIMapEntries
(Collection<Map.Entry<K, V>> source) ICollectors.toListMap()
ICollectors.toMap()
Creates a Collector suitable for use in the stream to produce a map.ICollectors.toOrderedListMap()
ICollectors.toOrderedMap()
Creates a Collector suitable for use in the stream to produce an insert order map.ICollectors.toOrderedSetMap()
ICollectors.toSetMap()
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) 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.static <K extends Comparable<K>,
V>
java.util.stream.Collector<IMapEntry<K, V>, ?, ISetMap<K, V>> ICollectors.toSortedSetMap()
static <K extends Comparable<K>,
V>
java.util.stream.Collector<IMapEntry<K, V>, ?, ISetMap<K, V>> ICollectors.toSortedSetMap
(Comparator<K> comparator) Modifier and TypeMethodDescriptiondefault IMapBuilder
<K, V> IMapBuilder.add
(T... source) Adds all values in the array to the values included in the collection when build() is called.static void
MapEntry.addToString
(StringBuilder sb, IMapEntry entry) static <K extends Comparable<K>,
V>
intMapEntry.compareKeys
(IMapEntry<K, V> a, IMapEntry<K, V> b) Add key/value entry to the map, replacing any existing entry with same key.Add key/value entry to the map, replacing any existing entry with same key.Add value to the Set for the specified key.static String
MapEntry.makeToString
(IMapEntry entry) static <K,
V> IMapEntry <K, V> Modifier and TypeMethodDescriptiondefault IMapBuilder
<K, V> Adds all values in the Collection to the values included in the collection when build() is called.default IMapBuilder
<K, V> Adds all values in the Iterator to the values included in the collection when build() is called.default IMapBuilder
<K, V> Adds all values in the Indexed to the values included in the collection when build() is called.default IMapBuilder
<K, V> IMapBuilder.add
(Indexed<? extends IMapEntry<? extends K, ? extends V>> source, int offset, int limit) Adds all values in the specified range of Indexed to the values included in the collection when build() is called.static <T> IArray
<T> Creates a sparse array containing all of the values from source that supports any integer (positive or negative) as an index.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.default IArrayBuilder
<T> Adds all values from the provided Iterator using the entry keys as indexes and the entry values as values.MapEntry.toMapEntries
(Collection<IMapEntry<K, V>> source) -
Uses of IMapEntry in org.javimmutable.collections.array
Modifier and TypeMethodDescriptionTrieArrayNode.entries()
TrieLongArrayNode.entries()
TrieArray.findEntry
(int index) TrieArray.iterator()
TrieArrayBuilder.iterator()
ArrayIterationMapper.mappedEntries
(T mapping) <K,
V> GenericIterator.Iterable <IMapEntry<K, V>> TrieArrayNode.mappedEntries
(ArrayIterationMapper<K, V, T> mapper) ArrayFindEntryMapper.mappedFindEntry
(T mapping, K key) TrieArrayNode.mappedFindEntry
(ArrayFindEntryMapper<K, V, T> mapper, K key) Modifier and TypeMethodDescriptionvoid
<E extends Exception>
voidTrieArray.forEachThrows
(Proc1Throws<IMapEntry<Integer, T>, E> proc) -
Uses of IMapEntry in org.javimmutable.collections.common
Modifier and TypeMethodDescriptionAbstractMultiset.entries()
CollisionMap.findEntry
(CollisionMap.Node node, K key) default GenericIterator.Iterable
<IMapEntry<K, V>> CollisionMap.genericIterable
(CollisionMap.Node node) default SplitableIterable
<IMapEntry<K, V>> CollisionMap.iterable
(CollisionMap.Node node) CollisionMap.iterateOverRange
(CollisionMap.Node node, GenericIterator.State<IMapEntry<K, V>> parent, int offset, int limit) default SplitableIterator
<IMapEntry<K, V>> CollisionMap.iterator
(CollisionMap.Node node) Modifier and TypeMethodDescriptionAdds the key/value pair to this map.Modifier and TypeMethodDescriptionCollisionMap.iterateOverRange
(CollisionMap.Node node, GenericIterator.State<IMapEntry<K, V>> parent, int offset, int limit) -
Uses of IMapEntry in org.javimmutable.collections.hash
Modifier and TypeMethodDescriptionHashMap.createMapCollector()
EmptyHashMap.iterator()
HashMap.iterator()
HashMap.mappedEntries
(ArrayMapNode<K, V> mapping) HashSet.mappedEntries
(ArraySetNode<T> mapping) HashMap.mappedFindEntry
(ArrayMapNode<K, V> mapping, K key) -
Uses of IMapEntry in org.javimmutable.collections.hash.map
Modifier and TypeMethodDescriptionArrayMapNode.entries
(CollisionMap<K, V> collisionMap) ArrayMultiValueMapNode.entries
(CollisionMap<K, V> collisionMap) ArraySingleValueMapNode.entries
(CollisionMap<K, V> collisionMap) ArrayMapNode.findEntry
(CollisionMap<K, V> collisionMap, K key) ArrayMultiValueMapNode.findEntry
(CollisionMap<K, V> collisionMap, K key) ArraySingleValueMapNode.findEntry
(CollisionMap<K, V> collisionMap, K key) -
Uses of IMapEntry in org.javimmutable.collections.inorder
Modifier and TypeMethodDescriptionOrderedMap.createMapCollector()
OrderedMap.iterator()
OrderedMap.mapCollector()
-
Uses of IMapEntry in org.javimmutable.collections.iterators
Modifier and TypeClassDescriptionclass
EntryStreamable<K,
V, C extends IStreamable<V>, D extends IStreamable<IMapEntry<K, C>>> Modifier and TypeMethodDescriptionstatic <K,
V> IStreamable <K> TransformStreamable.ofKeys
(IStreamable<IMapEntry<K, V>> source) static <K,
V> IStreamable <V> TransformStreamable.ofValues
(IStreamable<IMapEntry<K, V>> source) -
Uses of IMapEntry in org.javimmutable.collections.list
Modifier and TypeMethodDescriptionListCollisionMap.findEntry
(CollisionMap.Node node, K key) ListCollisionMap.iterateOverRange
(CollisionMap.Node node, GenericIterator.State<IMapEntry<K, V>> parent, int offset, int limit) Modifier and TypeMethodDescriptionListCollisionMap.iterateOverRange
(CollisionMap.Node node, GenericIterator.State<IMapEntry<K, V>> parent, int offset, int limit) -
Uses of IMapEntry in org.javimmutable.collections.setmap
-
Uses of IMapEntry 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) TreeCollisionMap.findEntry
(CollisionMap.Node node, K key) LeafNode.iterateOverRange
(GenericIterator.State<IMapEntry<K, V>> parent, int offset, int limit) TreeCollisionMap.iterateOverRange
(CollisionMap.Node node, GenericIterator.State<IMapEntry<K, V>> parent, int offset, int limit) TreeMap.iterator()
Modifier and TypeMethodDescriptionLeafNode.iterateOverRange
(GenericIterator.State<IMapEntry<K, V>> parent, int offset, int limit) TreeCollisionMap.iterateOverRange
(CollisionMap.Node node, GenericIterator.State<IMapEntry<K, V>> parent, int offset, int limit)