Package org.opencms.db
Class CmsDriverManager.ResourceListWithCacheability
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<CmsResource>
,Collection<CmsResource>
,List<CmsResource>
,RandomAccess
- Enclosing class:
- CmsDriverManager
Resource list which additionally knows whether it should be cacheable in the resource list cache or not.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorDescriptionCreates a new instance.ResourceListWithCacheability
(int initialCapacity) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Constructor Details
-
ResourceListWithCacheability
public ResourceListWithCacheability()Creates a new instance. -
ResourceListWithCacheability
Creates a new instance.- Parameters:
initialCapacity
- the initial capacity
-
-
Method Details
-
isCacheable
Returns true if the resource list is cacheable.- Returns:
- true if the list is cacheable
-
setCacheable
Enables/disables cacheability for the resource list.- Parameters:
cacheable
- true if the list should be cacheable
-