Package org.opencms.db
Class CmsDriverManager.ResourceListWithCacheability
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<CmsResource>,Collection<CmsResource>,List<CmsResource>,RandomAccess,SequencedCollection<CmsResource>
- 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
ConstructorsConstructorDescriptionCreates a new instance.ResourceListWithCacheability(int initialCapacity) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the resource list is cacheable.voidsetCacheable(boolean cacheable) Enables/disables cacheability for the resource list.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
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
-