E - type of contained elementspublic abstract class AbstractSimpleArrayCollection<E> extends AbstractSectionedArrayCollection<E>
ExtendedCollection.Creator<E,C extends ExtendedCollection<E>>| Constructor and Description |
|---|
AbstractSimpleArrayCollection() |
| Modifier and Type | Method and 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[] |
internalGetStorageArray(AbstractSimpleArrayCollection<?> subject)
Workaround method to handle the generics warning at a central place instead of maintaining them at hundreds
of code locations.
|
protected abstract int |
internalSize() |
internalGetSectionIndicesmarker, newArray, newArray, pow2BoundMaxedensureFreeArrayCapacity, internalCountingAddAll, internalCountingAddAll, internalCountingAddAll, internalCountingPutAll, internalCountingPutAll, internalCountingPutAll, validateIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasVolatileElements, nullAllowedprotected abstract E[] internalGetStorageArray()
The returned array is expected to contain the elements of the list in simple order from index 0 on to index (size - 1), so for example an array-backed ring list (queue) can NOT (reasonably) extend this class.
internalGetStorageArray in class AbstractSectionedArrayCollection<E>protected abstract int internalSize()
protected static <E> E[] internalGetStorageArray(AbstractSimpleArrayCollection<?> subject)
E - the element typesubject - the collection to get the storage array fromCopyright © 2022 MicroStream Software. All rights reserved.