|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.lang.XString
com.neeve.lang.XAbstractPooledString<T>
public abstract class XAbstractPooledString<T extends XAbstractPooledString<T>>
Abstract base class for pooled string types.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.neeve.lang.XString |
---|
XString.Factory<T extends XString>, XString.XStringFactory |
Method Summary | |
---|---|
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. |
Methods inherited from class com.neeve.lang.XString |
---|
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, isImmutable, isInitialized, isMutable, isNativeXStringEnabled, isNull, length, reset, setCharAt, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromMemory, startsWith, startsWith, subSequence, toDiagnosticString, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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
getPool
in interface UtlPool.Item<T extends XAbstractPooledString<T>>
UtlPool.Item.setPool(com.neeve.util.UtlPool)
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |