public class Boolean2ObjectMaps
extends java.lang.Object
| Constructor and Description |
|---|
Boolean2ObjectMaps() |
| Modifier and Type | Method and Description |
|---|---|
static <V> void |
fastForEach(Boolean2ObjectMap<V> map,
java.util.function.Consumer<Boolean2ObjectMap.Entry<V>> action)
A Helper function that provides a faster forEach iterator implementation that recycles the entry to increase throughput
|
static <V> ObjectIterable<Boolean2ObjectMap.Entry<V>> |
fastIterable(Boolean2ObjectMap<V> map)
Helper method that provides the fastIterable that recycles a single Entry to increase throughput.
|
static <V> ObjectIterator<Boolean2ObjectMap.Entry<V>> |
fastIterator(Boolean2ObjectMap<V> map)
Helper method that provides the fastIterator that recycles a single Entry to increase throughput.
|
public static <V> ObjectIterator<Boolean2ObjectMap.Entry<V>> fastIterator(Boolean2ObjectMap<V> map)
V - the type of elements maintained by this Collectionmap - the map the fastIterator should be accessed frompublic static <V> ObjectIterable<Boolean2ObjectMap.Entry<V>> fastIterable(Boolean2ObjectMap<V> map)
V - the type of elements maintained by this Collectionmap - the map the fastIterable should be accessed frompublic static <V> void fastForEach(Boolean2ObjectMap<V> map, java.util.function.Consumer<Boolean2ObjectMap.Entry<V>> action)
V - the type of elements maintained by this Collectionmap - the map the fast forEach should be accessed fromaction - the action that should be performed on each entry