Package org.opencms.db
Class CmsDriverManager.ResourceListWithCacheability
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<CmsResource>
-
- org.opencms.db.CmsDriverManager.ResourceListWithCacheability
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<CmsResource>
,java.util.Collection<CmsResource>
,java.util.List<CmsResource>
,java.util.RandomAccess
- Enclosing class:
- CmsDriverManager
public static class CmsDriverManager.ResourceListWithCacheability extends java.util.ArrayList<CmsResource>
Resource list which additionally knows whether it should be cacheable in the resource list cache or not.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceListWithCacheability()
Creates a new instance.ResourceListWithCacheability(int initialCapacity)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCacheable()
Returns true if the resource list is cacheable.void
setCacheable(boolean cacheable)
Enables/disables cacheability for the resource list.-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Constructor Detail
-
ResourceListWithCacheability
public ResourceListWithCacheability()
Creates a new instance.
-
ResourceListWithCacheability
public ResourceListWithCacheability(int initialCapacity)
Creates a new instance.- Parameters:
initialCapacity
- the initial capacity
-
-
Method Detail
-
isCacheable
public boolean isCacheable()
Returns true if the resource list is cacheable.- Returns:
- true if the list is cacheable
-
setCacheable
public void setCacheable(boolean cacheable)
Enables/disables cacheability for the resource list.- Parameters:
cacheable
- true if the list should be cacheable
-
-