Package de.hybris.platform.core.internal
Class BaseLazyLoadItemList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
de.hybris.platform.core.internal.BaseLazyLoadItemList<E>
- All Implemented Interfaces:
Serializable,Iterable<E>,Collection<E>,List<E>
- Direct Known Subclasses:
LazyLoadItemList
Internal, base class for separation internals of
LazyLoadItemList. This is suppose to
be a non modifiable container for data only stored in cache.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intPredefined prefetch size, used in case when the given in config is not appropriate (seegetConfigBasedPrefetchSize())static final intThe value forDEFAULT_PREFETCH_SIZEis read from the configuration properties.protected static final StringFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseLazyLoadItemList(int preFetchSize, Set<PK> prefetchLanguages, List<PK> pkList, boolean modifiable) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassureIndex(int listPos) voidclear()booleanfinal booleanabstract Eget(int index) protected ConfigIntfgetPK(int index) intfinal inthashCode()booleaniterator()remove(int index) Does not completely fulfill the remove() contract.intsize()toString()Methods inherited from class java.util.AbstractList
add, add, addAll, indexOf, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
DEFAULT_CONFIG_PREFETCH_SIZE
protected static final int DEFAULT_CONFIG_PREFETCH_SIZEPredefined prefetch size, used in case when the given in config is not appropriate (seegetConfigBasedPrefetchSize())- See Also:
-
PREFETCH_SIZE_PROPERTY
- See Also:
-
DEFAULT_PREFETCH_SIZE
public static final int DEFAULT_PREFETCH_SIZEThe value forDEFAULT_PREFETCH_SIZEis read from the configuration properties. The key islazy.pkcollection.prefetchsize.- See Also:
-
-
Constructor Details
-
BaseLazyLoadItemList
-
-
Method Details
-
toString
- Overrides:
toStringin classAbstractCollection<E>
-
getPK
- Throws:
IndexOutOfBoundsException
-
getPKList
-
getPKListInternal
-
set
-
remove
Does not completely fulfill the remove() contract. To make sure this method does not instantiate the item at the given index, always null is returned. -
clear
public void clear()- Specified by:
clearin interfaceCollection<E>- Specified by:
clearin interfaceList<E>- Overrides:
clearin classAbstractList<E>
-
get
-
assureIndex
- Throws:
IndexOutOfBoundsException
-
size
public int size()- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceList<E>- Specified by:
sizein classAbstractCollection<E>
-
contains
- Specified by:
containsin interfaceCollection<E>- Specified by:
containsin interfaceList<E>- Overrides:
containsin classAbstractCollection<E>
-
iterator
-
hashCode
public final int hashCode()- Specified by:
hashCodein interfaceCollection<E>- Specified by:
hashCodein interfaceList<E>- Overrides:
hashCodein classAbstractList<E>
-
equals
- Specified by:
equalsin interfaceCollection<E>- Specified by:
equalsin interfaceList<E>- Overrides:
equalsin classAbstractList<E>
-
getPreFetchSize
public int getPreFetchSize() -
getPrefetchLanguages
-
isModifiable
public boolean isModifiable()- Returns:
- the modifiable
-
getConfig
-