org.ka2ddo.util
Class StringCache

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<T>
          extended by org.ka2ddo.util.ShareableObjectCache<java.lang.String>
              extended by org.ka2ddo.util.StringCache
All Implemented Interfaces:
java.lang.Iterable<java.lang.String>, java.util.Collection<java.lang.String>, java.util.Set<java.lang.String>

public final class StringCache
extends ShareableObjectCache<java.lang.String>

This singleton class provides a pruneable cache for constant Strings that won't eat up the PermGen part of the Java JVM heap.


Method Summary
protected  java.lang.Class getType()
           
static java.lang.String intern(java.lang.String s)
           
static java.lang.String paramString()
           
 
Methods inherited from class org.ka2ddo.util.ShareableObjectCache
add, clear, internKey, isEmpty, iterator, remove, size, toString
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, contains, containsAll, retainAll, toArray, toArray
 

Method Detail

intern

public static java.lang.String intern(java.lang.String s)

getType

protected java.lang.Class getType()
Specified by:
getType in class ShareableObjectCache<java.lang.String>

paramString

public static java.lang.String paramString()