net.sf.beanform.util
Class StringCache
java.lang.Object
net.sf.beanform.util.StringCache
public class StringCache
- extends Object
A thread-safe cache of strings that allows aliasing of long strings to smaller
strings that can then be used to reverse the process.
- Author:
- Daniel Gredler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CHARS
protected static final char[] CHARS
maxSize
protected int maxSize
cacheByShort
protected Map<String,String> cacheByShort
cacheByReal
protected Map<String,String> cacheByReal
StringCache
public StringCache(int maxSize)
getShortVersion
public String getShortVersion(String real)
getRealVersion
public String getRealVersion(String shortVersion)
getChars
protected static String getChars(char[] chars,
int index)
Copyright © 2005-2008 SourceForge.net. All Rights Reserved.