Package io.higson.runtime.helper.parser
Class CachingNumberParser
java.lang.Object
io.higson.runtime.helper.parser.CachingNumberParser
The number parser that caches [maxSize] parsing results.
This is the internal parser used by: - number type decoding - groovy type converter - higson persistence number convertions
The very rough estimate of heap consumption is 0.08 MB for each 1000 cache entries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BigDecimalstatic BigDecimalstatic voidsetCacheSize(int maxSize)
-
Constructor Details
-
CachingNumberParser
public CachingNumberParser()
-
-
Method Details
-
setCacheSize
public static void setCacheSize(int maxSize) -
parse
-
doParse
-