org.xith3d.utility.cache
Class ArrayCache

java.lang.Object
  extended by org.xith3d.utility.cache.Cache<java.lang.reflect.Array>
      extended by org.xith3d.utility.cache.ArrayCache
All Implemented Interfaces:
org.jagatoo.datatypes.NamedObject

public class ArrayCache
extends Cache<java.lang.reflect.Array>

Simple cache to handle arrays.


Field Summary
 
Fields inherited from class org.xith3d.utility.cache.Cache
FIND_ANY, FIND_BEST, FIND_EXACT, FIND_FIRST
 
Constructor Summary
ArrayCache(java.lang.String name, boolean shareable)
           
 
Method Summary
static java.lang.reflect.Array getArray(java.lang.Class<?> className, int length)
           
 
Methods inherited from class org.xith3d.utility.cache.Cache
dumpAllCacheInfo, dumpCacheInfo, getAny, getBest, getCache, getFirst, getName, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayCache

public ArrayCache(java.lang.String name,
                  boolean shareable)
Method Detail

getArray

public static java.lang.reflect.Array getArray(java.lang.Class<?> className,
                                               int length)
Parameters:
className -
length -
Returns:
the cached array