Class UserAgentAnnotationAnalyzer<T>
java.lang.Object
nl.basjes.parse.useragent.annotate.UserAgentAnnotationAnalyzer<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
void
initialize
(UserAgentAnnotationMapper<T> theMapper) void
setCacheSize
(int newCacheSize) Sets the new size of the parsing cache.
-
Constructor Details
-
UserAgentAnnotationAnalyzer
public UserAgentAnnotationAnalyzer()
-
-
Method Details
-
disableCaching
public void disableCaching() -
setCacheSize
public void setCacheSize(int newCacheSize) Sets the new size of the parsing cache. Note that this will also wipe the existing cache.- Parameters:
newCacheSize
- The size of the new LRU cache. As size of 0 will disable caching.
-
getCacheSize
public int getCacheSize() -
initialize
-
map
-