org.jboss.cache.pojo.collection
Class CachedArray
java.lang.Object
org.jboss.cache.pojo.collection.CachedArray
- Direct Known Subclasses:
- CachedObjectArray, CachedPrimitiveArray
public abstract class CachedArray
- extends Object
A CachedArray is the base class for cache backed array access. It replicates the Java array contract.
- Author:
- Jason T. Greene
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cache
protected PojoCacheImpl cache
fqn
protected org.jboss.cache.Fqn<?> fqn
CachedArray
protected CachedArray(org.jboss.cache.Fqn<?> fqn,
Class<?> type,
PojoCacheImpl cache)
load
public static CachedArray load(org.jboss.cache.Fqn<?> fqn,
PojoCacheImpl cache,
Class<?> type)
create
public static CachedArray create(org.jboss.cache.Fqn<?> fqn,
PojoCacheImpl cache,
Object originalArray)
getFqn
public org.jboss.cache.Fqn<?> getFqn()
set
public abstract void set(int index,
Object element)
get
public abstract Object get(int index)
writeInfo
protected void writeInfo()
destroy
public void destroy()
length
public int length()
toArray
public Object toArray()
Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.