com.google.i18n.phonenumbers
Class RegexCache

java.lang.Object
  extended by com.google.i18n.phonenumbers.RegexCache

public class RegexCache
extends java.lang.Object

LRU Cache for compiled regular expressions used by the libphonenumbers libary.

Author:
Shaopeng Jia

Constructor Summary
RegexCache(int size)
           
 
Method Summary
 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)


Copyright © 2011 Google. All Rights Reserved.