public abstract class XAbstractPooledString<T extends XAbstractPooledString<T>> extends XString implements UtlPool.Item<T>
XString.Factory<T extends XString>, XString.XStringFactory
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, charAt, clear, compareTo, copyFrom, copyFrom, copyFromMemory, copyFromNative, copyInto, copyInto, copyInto, copyInto, create, create, create, create, create, create, create, equals, getBackingBuffer, getBackingBufferOffset, getSerializedLength, getValue, getValueAsLong, getValueAsLong, getValueAsLongDecimal, hashCode, indexOf, indexOf, indexOf, indexOf, initialize, initializeFrom, isEmpty, isImmutable, isInitialized, isMutable, isNativeXStringEnabled, isNull, length, padForNullTerminator, reset, setCharAt, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromMemory, startsWith, startsWith, subSequence, toDiagnosticString, toString
public 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 Neeve Research, LLC. All Rights Reserved.