Package io.micronaut.core.util
Class StringIntMap
java.lang.Object
io.micronaut.core.util.StringIntMap
Fixed-size String->int map optimized for very fast read operations.
- Since:
- 4.0.0
- Author:
- Jonas Konrad
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
StringIntMap
public StringIntMap(int size) Create a new map. The given size must not be exceeded byput(java.lang.String, int)
operations, or there may be infinite loops. There is no sanity check for this for performance reasons!- Parameters:
size
- The maximum size of the map
-
-
Method Details
-
get
-
put
-