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:
java.io.Serializable,java.lang.Iterable<E>,java.util.Collection<E>,java.util.List<E>
- Direct Known Subclasses:
LazyLoadItemList
public abstract class BaseLazyLoadItemList<E> extends java.util.AbstractList<E> implements java.io.SerializableInternal, base class for separation internals ofLazyLoadItemList. This is suppose to be a non modifiable container for data only stored in cache.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static intDEFAULT_CONFIG_PREFETCH_SIZEPredefined prefetch size, used in case when the given in config is not appropriate (seegetConfigBasedPrefetchSize())static intDEFAULT_PREFETCH_SIZEThe value forDEFAULT_PREFETCH_SIZEis read from the configuration properties.protected static java.lang.StringPREFETCH_SIZE_PROPERTY
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseLazyLoadItemList(int preFetchSize, java.util.Set<PK> prefetchLanguages, java.util.List<PK> pkList, boolean modifiable)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidassureIndex(int listPos)voidclear()booleancontains(java.lang.Object obj)booleanequals(java.lang.Object obj)abstract Eget(int index)protected ConfigIntfgetConfig()PKgetPK(int index)java.util.List<PK>getPKList()protected java.util.List<PK>getPKListInternal()java.util.Set<PK>getPrefetchLanguages()intgetPreFetchSize()inthashCode()booleanisModifiable()java.util.Iterator<E>iterator()Eremove(int index)Does not completely fulfill the remove() contract.Eset(int index, java.lang.Object element)intsize()java.lang.StringtoString()-
Methods inherited from class java.util.AbstractList
add, add, addAll, indexOf, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
-
-
-
-
Field Detail
-
DEFAULT_CONFIG_PREFETCH_SIZE
protected static final int DEFAULT_CONFIG_PREFETCH_SIZE
Predefined prefetch size, used in case when the given in config is not appropriate (seegetConfigBasedPrefetchSize())- See Also:
- Constant Field Values
-
PREFETCH_SIZE_PROPERTY
protected static final java.lang.String PREFETCH_SIZE_PROPERTY
- See Also:
- Constant Field Values
-
DEFAULT_PREFETCH_SIZE
public static final int DEFAULT_PREFETCH_SIZE
The value forDEFAULT_PREFETCH_SIZEis read from the configuration properties. The key islazy.pkcollection.prefetchsize.- See Also:
- Constant Field Values
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.util.AbstractCollection<E>
-
getPK
public PK getPK(int index) throws java.lang.IndexOutOfBoundsException
- Throws:
java.lang.IndexOutOfBoundsException
-
getPKList
public java.util.List<PK> getPKList()
-
getPKListInternal
protected java.util.List<PK> getPKListInternal()
-
set
public E set(int index, java.lang.Object element)
-
remove
public E remove(int index)
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()
-
get
public abstract E get(int index)
-
assureIndex
protected void assureIndex(int listPos) throws java.lang.IndexOutOfBoundsException- Throws:
java.lang.IndexOutOfBoundsException
-
size
public int size()
-
contains
public boolean contains(java.lang.Object obj)
-
iterator
public java.util.Iterator<E> iterator()
-
hashCode
public final int hashCode()
-
equals
public final boolean equals(java.lang.Object obj)
-
getPreFetchSize
public int getPreFetchSize()
-
getPrefetchLanguages
public java.util.Set<PK> getPrefetchLanguages()
-
isModifiable
public boolean isModifiable()
- Returns:
- the modifiable
-
getConfig
protected ConfigIntf getConfig()
-
-