Class RegexCache


  • public class RegexCache
    extends java.lang.Object
    LRU Cache for compiled regular expressions used by the libphonenumbers libary.
    Author:
    Shaopeng Jia
    • Constructor Summary

      Constructors 
      Constructor Description
      RegexCache​(int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.regex.Pattern getPatternForRegex​(java.lang.String regex)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RegexCache

        public RegexCache​(int size)
    • Method Detail

      • getPatternForRegex

        public java.util.regex.Pattern getPatternForRegex​(java.lang.String regex)