当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
StringCache (Editor Library) - NetBeans API Javadoc (Current Development Version)
org.netbeans.editor.ext
Class StringCache
java.lang.Object
org.netbeans.editor.ext.StringCache
public class StringCache
- extends Object
Cache holding the most commonly used strings.
The unused strings are discarded when they reach the end of chain.
statQueries
public int statQueries
statHits
public int statHits
StringCache
public StringCache()
StringCache
public StringCache(int maxSize)
StringCache
public StringCache(int maxSize,
int initialMapCapacity)
getString
public String getString(char[] chars,
int offset,
int len)
putSurviveString
public void putSurviveString(String s)
- Put a string into cache that will survive there
so that it will be never removed.
toString
public String toString()
- Overrides:
toString
in class Object