Package de.hybris.platform.core
Class LazyLoadItemList.BufferedPage<T>
- java.lang.Object
-
- de.hybris.platform.core.LazyLoadItemList.BufferedPage<T>
-
- Enclosing class:
- LazyLoadItemList<E>
protected static class LazyLoadItemList.BufferedPage<T> extends java.lang.ObjectThread safe (hopefully) abstraction for paged result objects list with information at which index this page starts. Also has functionality of checking if given global index 'is in scope' of currentLazyLoadItemList.BufferedPage.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBufferedPage(java.util.List<T> buffer, int pageStartPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisBufferValid(int globalposition)Returns true if givenglobalposiotioncould be retrieved for the current page.booleanisEmpty()protected intsize()java.lang.StringtoString()
-
-
-
Constructor Detail
-
BufferedPage
protected BufferedPage(java.util.List<T> buffer, int pageStartPosition)
-
-
Method Detail
-
size
protected int size()
-
isEmpty
public boolean isEmpty()
-
isBufferValid
protected boolean isBufferValid(int globalposition)
Returns true if givenglobalposiotioncould be retrieved for the current page. This is fullilled if the page is not null and globalposition is in relative range of current page.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-