Class CharBigList.CharBlock
java.lang.Object
org.magicwerk.brownies.collections.primitive.ICharList
org.magicwerk.brownies.collections.primitive.CharGapList
org.magicwerk.brownies.collections.primitive.CharBigList.CharBlock
- All Implemented Interfaces:
Serializable
,CharSequence
,Cloneable
,ICharListable
- Enclosing class:
CharBigList
A block stores in maximum blockSize number of elements.
The first block in a CharBigList will grow until reaches this limit, all other blocks are directly
allocated with a capacity of blockSize.
A block maintains a reference count which allows a block to be shared among different CharBigList
instances with a copy-on-write approach.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.magicwerk.brownies.collections.primitive.CharGapList
CharGapList.ReadOnlyList
Nested classes/interfaces inherited from class org.magicwerk.brownies.collections.primitive.ICharList
ICharList.ICharListableFromArray, ICharList.ICharListableFromCollection, ICharList.ICharListableFromList, ICharList.ICharListableFromMult
-
Field Summary
FieldsFields inherited from class org.magicwerk.brownies.collections.primitive.CharGapList
DEFAULT_CAPACITY
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.magicwerk.brownies.collections.primitive.CharGapList
add, add, binarySearch, calculateNewCapacity, capacity, clone, copy, create, create, create, create, crop, doAdd, doAssign, doClear, doClone, doCreate, doEnsureCapacity, doGet, doGetAll, doRemove, doRemoveAll, doRemoveAllFast, doReSet, doSet, EMPTY, ensureNormalized, get, getAll, getAll, getDefaultElem, immutable, immutable, immutableList, init, init, init, init, init, isNormalized, isReadOnly, map, prepareAddBuffer, releaseAddBuffer, remove, size, sort, trimToSize, unmodifiableList
Methods inherited from class org.magicwerk.brownies.collections.primitive.ICharList
addAll, addAll, addAll, addAll, addArray, addArray, addArray, addArray, addFirst, addIfAbsent, addLast, addMult, addMult, asICharListable, binarySearch, charAt, checkIndex, checkIndexAdd, checkLength, checkLengths, checkNonNull, checkRange, clear, contains, containsAll, containsAny, containsIf, copy, count, countIf, doAddAll, doCreateArray, doIndexOf, doIndexOfIf, doInitAll, doLastIndexOf, doLastIndexOfIf, doModify, doPutAll, doReplace, doRotate, doTransfer, doTransferSwap, drag, element, ensureCapacity, equals, equalsElem, extract, extractIf, fill, filter, filterMap, flatMap, getDistinct, getFirst, getFirstOrNull, getIf, getLast, getLastOrNull, getSingle, getSingleOrNull, hashCode, hashCodeElem, indexOf, indexOf, indexOfIf, indexOfIf, initAll, initAll, initArray, initMult, isEmpty, lastIndexOf, lastIndexOf, lastIndexOfIf, lastIndexOfIf, length, mapFilter, move, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, put, putAll, putAll, putArray, putMult, remove, remove, removeAll, removeAll, removeAll, removeElem, removeFirst, removeFirstOccurrence, removeIf, removeLast, removeLastOccurrence, replace, replaceAll, replaceAll, replaceArray, replaceMult, resize, retain, retainAll, retainAll, retainIf, reverse, reverse, rotate, rotate, set, setAll, setAll, setArray, setArray, setMult, sort, subSequence, swap, toArray, toArray, toArray, toArray, toArray, toArray, toArray, toString, transferCopy, transferMove, transferRemove, transferSwap, transform, transformedList
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
Field Details
-
refCount
-
-
Constructor Details
-
CharBlock
public CharBlock() -
CharBlock
public CharBlock(int capacity) -
CharBlock
-
-
Method Details
-
ref
Increment reference count as block is used by one CharBigList instance more. -
unref
public void unref()Decrement reference count as block is no longer used by one CharBigList instance.