public abstract class BaseLazyLoadItemList<E> extends AbstractList<E> implements Serializable
LazyLoadItemList. This is suppose to
be a non modifiable container for data only stored in cache.| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_CONFIG_PREFETCH_SIZE
Predefined prefetch size, used in case when the given in config is not appropriate (see
getConfigBasedPrefetchSize()) |
static int |
DEFAULT_PREFETCH_SIZE
The value for
DEFAULT_PREFETCH_SIZE is read from the configuration properties. |
protected static String |
PREFETCH_SIZE_PROPERTY |
modCount| Modifier | Constructor and Description |
|---|---|
protected |
BaseLazyLoadItemList(int preFetchSize,
Set<PK> prefetchLanguages,
List<PK> pkList,
boolean modifiable) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assureIndex(int listPos) |
void |
clear() |
boolean |
contains(Object obj) |
boolean |
equals(Object obj) |
abstract E |
get(int index) |
protected ConfigIntf |
getConfig() |
PK |
getPK(int index) |
List<PK> |
getPKList() |
protected List<PK> |
getPKListInternal() |
Set<PK> |
getPrefetchLanguages() |
int |
getPreFetchSize() |
int |
hashCode() |
boolean |
isModifiable() |
Iterator<E> |
iterator() |
E |
remove(int index)
Does not completely fulfill the remove() contract.
|
E |
set(int index,
Object element) |
int |
size() |
String |
toString() |
add, add, addAll, indexOf, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streamprotected static final int DEFAULT_CONFIG_PREFETCH_SIZE
getConfigBasedPrefetchSize())protected static final String PREFETCH_SIZE_PROPERTY
public static final int DEFAULT_PREFETCH_SIZE
DEFAULT_PREFETCH_SIZE is read from the configuration properties. The key is
lazy.pkcollection.prefetchsize.public String toString()
toString in class AbstractCollection<E>public PK getPK(int index) throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionpublic E remove(int index)
public void clear()
clear in interface Collection<E>clear in interface List<E>clear in class AbstractList<E>public abstract E get(int index)
protected void assureIndex(int listPos)
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionpublic int size()
size in interface Collection<E>size in interface List<E>size in class AbstractCollection<E>public boolean contains(Object obj)
contains in interface Collection<E>contains in interface List<E>contains in class AbstractCollection<E>public final int hashCode()
hashCode in interface Collection<E>hashCode in interface List<E>hashCode in class AbstractList<E>public final boolean equals(Object obj)
equals in interface Collection<E>equals in interface List<E>equals in class AbstractList<E>public int getPreFetchSize()
public boolean isModifiable()
protected ConfigIntf getConfig()
Copyright © 2017 SAP SE. All Rights Reserved.