Package one.microstream.collections
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.collections.interfaces.ExtendedCollection
ExtendedCollection.Creator<E,C extends ExtendedCollection<E>>
-
Constructor Summary
Constructors Constructor Description AbstractArrayCollection()
-
Method Summary
Modifier and Type Method Description 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.protected static <E> E
marker()
protected static <E> E[]
newArray(int length)
protected static <E> E[]
newArray(int length, E[] oldData, int oldDataLength)
static int
pow2BoundMaxed(long n)
Methods inherited from class one.microstream.collections.AbstractExtendedCollection
ensureFreeArrayCapacity, internalCountingAddAll, internalCountingAddAll, internalCountingAddAll, internalCountingPutAll, internalCountingPutAll, internalCountingPutAll, validateIndex
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface one.microstream.collections.interfaces.ExtendedCollection
hasVolatileElements, nullAllowed
-
Constructor Details
-
AbstractArrayCollection
public AbstractArrayCollection()
-
-
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
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.
-