public abstract class XAbstractPooledString<T extends XAbstractPooledString<T>> extends XString implements UtlPool.Item<T>
XString.ImmutableExtension| Modifier and Type | Method and Description |
|---|---|
T |
acquire()
Acquire a reference to this object.
|
void |
dispose()
Releases the reference count hold on this pooled string.
|
int |
getOwnershipCount()
Gets the current ownership count for the pooled string.
|
UtlPool<T> |
getPool()
Get a pool item's pool.
|
T |
init()
This method should not be called by user code, it is invoked by
an object's pool when the object is recycled.
|
T |
setPool(UtlPool<T> pool)
This method should not be called by user code, it is invoked by
a pooled strings's pool when the object is created.
|
append, append, append, append, append, append, append, append, append, append, append, append, canMutate, capacity, charAt, clear, clear, close, compareTo, copyFrom, copyFrom, copyFromMemory, copyFromNative, copyInto, copyInto, copyInto, copyInto, create, create, create, create, create, create, create, create, ensureCapacity, equals, getAsLong, getAsLong, getAsLongDecimal, getAsString, getSerializedLength, getTo, getTo, getTo, getTo, getTo, getTo, getValue, getValueAsLong, hashCode, hasValue, indexOf, indexOf, indexOf, indexOf, initialize, initializeFrom, isEmpty, isImmutable, isInitialized, isMutable, isNull, length, nativeAddress, reset, serializedLength, setCharAt, setFrom, setFrom, setFrom, setFrom, setFrom, setFrom, setFrom, setFrom, setFrom, setFrom, setFrom, setFrom, setFrom, setFrom, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromMemory, startsWith, startsWith, stringSize, subSequence, toDiagnosticString, toStringchars, codePointspublic final T init()
init in interface UtlPool.Item<T extends XAbstractPooledString<T>>public final T setPool(UtlPool<T> pool)
setPool in interface UtlPool.Item<T extends XAbstractPooledString<T>>public final UtlPool<T> getPool()
UtlPool.Item
This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool<T>)
getPool in interface UtlPool.Item<T extends XAbstractPooledString<T>>UtlPool.Item.setPool(com.neeve.util.UtlPool<T>)public final T acquire()
An object's ownership count starts at 1.
public final void dispose()
This allows the pooled string to be returned to a pool (if it is pooled).
public final int getOwnershipCount()
Copyright © 2019 N5 Technologies, Inc. All Rights Reserved.