Class UserAgentAnnotationAnalyzer<T>

java.lang.Object
nl.basjes.parse.useragent.annotate.UserAgentAnnotationAnalyzer<T>

public class UserAgentAnnotationAnalyzer<T> extends Object
  • 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

      public void initialize(UserAgentAnnotationMapper<T> theMapper)
    • map

      public T map(T record)