Class RegexPatternCache
- java.lang.Object
-
- hu.icellmobilsoft.coffee.tool.utils.string.RegexPatternCache
-
public class RegexPatternCache extends Object
Cache for precompiled regex patterns used inStringUtilclass- Since:
- 1.3.0
- Author:
- jozsef.kelemen
-
-
Constructor Summary
Constructors Constructor Description RegexPatternCache()Instantiates a new Regex pattern cache.RegexPatternCache(int cacheSize)Instantiates a new Regex pattern cache.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear cache valuesPatterngetPattern(String patternKey)Gets a pattern from cache if found, compiles and stores otherwise.
-