IntFloatMap


public sealed class IntFloatMap

Known direct subclasses
MutableIntFloatMap

MutableIntFloatMap is a container with a MutableMap-like interface for Int primitive keys and Float primitive values.


IntFloatMap is a container with a Map-like interface for Int primitive keys and Float primitive values.

The underlying implementation is designed to avoid allocations from boxing, and insertion, removal, retrieval, and iteration operations. Allocations may still happen on insertion when the underlying storage needs to grow to accommodate newly added entries to the table. In addition, this implementation minimizes memory usage by avoiding the use of separate objects to hold key/value pairs.

This implementation makes no guarantee as to the order of the keys and values stored, nor does it make guarantees that the order remains constant over time.

This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the map (insertion or removal for instance), the calling code must provide the appropriate synchronization. Multiple threads are safe to read from this map concurrently if no write is happening.

This implementation is read-only and only allows data to be queried. A mutable implementation is provided by MutableIntFloatMap.

Summary

Protected constructors

Public methods