Class AbstractPagedArray.Page<E>

java.lang.Object
org.hibernate.internal.util.collections.AbstractPagedArray.Page<E>
Enclosing class:
AbstractPagedArray<E>

protected static final class AbstractPagedArray.Page<E> extends Object
Represents a page of AbstractPagedArray.PAGE_CAPACITY objects in the overall array.
  • Constructor Details

    • Page

      public Page()
  • Method Details

    • clear

      public void clear()
      Clears the contents of the page.
    • set

      public E set(int offset, Object element)
      Set the provided element at the specified offset.
      Parameters:
      offset - the offset in the page where to set the element
      element - the element to set
      Returns:
      the previous element at offset if one existed, or null
    • get

      public E get(int offset)
      Get the element at the specified offset.
      Parameters:
      offset - the offset in the page where to set the element
      Returns:
      the element at index if one existed, or null