Class AbstractArrayCollection<E>

java.lang.Object
one.microstream.collections.AbstractExtendedCollection<E>
one.microstream.collections.AbstractArrayCollection<E>
Type Parameters:
E - type of contained elements
All Implemented Interfaces:
ExtendedCollection<E>, Sized
Direct Known Subclasses:
AbstractSectionedArrayCollection

public abstract class AbstractArrayCollection<E>
extends AbstractExtendedCollection<E>
implements Sized
  • Constructor Details

  • Method Details

    • marker

      protected static final <E> E marker()
    • newArray

      protected static final <E> E[] newArray​(int length)
    • newArray

      protected static final <E> E[] newArray​(int length, E[] oldData, int oldDataLength)
    • pow2BoundMaxed

      public static final int pow2BoundMaxed​(long n)
    • internalGetStorageArray

      protected abstract E[] internalGetStorageArray()
      This is an internal shortcut method to provide fast access to the various array-backed list implementations' storage arrays.
      The purpose of this method is to allow access to the array only for read-only procedures, never for modifying accesses.
      Returns:
      the storage array used by the list, containing all elements in straight order.