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 Object
Thread 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 current LazyLoadItemList.BufferedPage.
  • Constructor Details

    • BufferedPage

      protected BufferedPage(List<T> buffer, int pageStartPosition)
  • Method Details

    • size

      protected int size()
    • isEmpty

      public boolean isEmpty()
    • isBufferValid

      protected boolean isBufferValid(int globalposition)
      Returns true if given globalposiotion could 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 String toString()
      Overrides:
      toString in class Object