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