站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

StringCache (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor.ext
Class StringCache

java.lang.Object
  extended by 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.


Field Summary
 int statHits
           
 int statQueries
           
 
Constructor Summary
StringCache()
           
StringCache(int maxSize)
           
StringCache(int maxSize, int initialMapCapacity)
           
 
Method Summary
 String getString(char[] chars, int offset, int len)
           
 void putSurviveString(String s)
          Put a string into cache that will survive there so that it will be never removed.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

statQueries

public int statQueries

statHits

public int statHits
Constructor Detail

StringCache

public StringCache()

StringCache

public StringCache(int maxSize)

StringCache

public StringCache(int maxSize,
                   int initialMapCapacity)
Method Detail

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

org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.