Package de.hybris.platform.core
Class AbstractLazyLoadMultiColumnList<T extends LazyLoadItemList>
- All Implemented Interfaces:
Serializable,Iterable<List<Object>>,Collection<List<Object>>,List<List<Object>>
- Direct Known Subclasses:
LazyLoadMultiColumnList,LazyLoadMultiColumnModelList
public abstract class AbstractLazyLoadMultiColumnList<T extends LazyLoadItemList>
extends AbstractList<List<Object>>
implements Serializable
Abstraction for
LazyLoadMultiColumnModelList and
LazyLoadMultiColumnList- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceinternal callbackprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Objectprotected final BaseLazyLoadItemListFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractLazyLoadMultiColumnList(AbstractLazyLoadMultiColumnList original, AbstractLazyLoadMultiColumnList.CalculateLazyLoadListBody itemListProvider) protectedAbstractLazyLoadMultiColumnList(List<List<Object>> originalRows, List<Class> signature, Set<PK> prefetchLanguages, int prefetchSize, boolean mustWrapObjectsToo) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Listcreates an empty list in trivial case, should return an instance of typeLazyLoadItemListprotected ListcreateItemList(Set<PK> prefetchLanguages, List<PK> itemPKs, int prefetchSize) creates an underlying list based on passedPK, should return an instance of typeLazyLoadItemListprotected ObjectfetchSource(int marker, int position) get(int index) getRows()intbooleanintsize()protected ObjectwrapObject(Object original) Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods 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, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
NULL_MARKER
-
wrappedItemList
-
-
Constructor Details
-
AbstractLazyLoadMultiColumnList
protected AbstractLazyLoadMultiColumnList(AbstractLazyLoadMultiColumnList original, AbstractLazyLoadMultiColumnList.CalculateLazyLoadListBody itemListProvider) -
AbstractLazyLoadMultiColumnList
-
-
Method Details
-
createItemList
creates an underlying list based on passedPK, should return an instance of typeLazyLoadItemList -
createEmptyItemList
creates an empty list in trivial case, should return an instance of typeLazyLoadItemList -
fetchSource
-
wrapObject
-
get
- Specified by:
getin interfaceList<T extends LazyLoadItemList>- Specified by:
getin classAbstractList<List<Object>>
-
getRows
-
isWrappedItemListEmpty
public boolean isWrappedItemListEmpty() -
getWrappedPrefetchSize
public int getWrappedPrefetchSize() -
getWrappedItemListPks
-
getPrefetchedLanguages
-
size
public int size()- Specified by:
sizein interfaceCollection<T extends LazyLoadItemList>- Specified by:
sizein interfaceList<T extends LazyLoadItemList>- Specified by:
sizein classAbstractCollection<List<Object>>
-