|
|||||||||
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<XPooledString>
com.neeve.lang.XPooledString
public final class XPooledString
Implements a poolable XString.
Note: This class is currently intended for internal use only.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.neeve.lang.XString |
---|
XString.XStringFactory |
Field Summary | |
---|---|
static XString.Factory<XPooledString> |
FACTORY
The default factory used to create pooled string instances. |
Method Summary | |
---|---|
static XPooledString |
create()
Create a new, mutable, uninitialized XPooledString using this type's
default XString.Factory . |
static XPooledString |
create(boolean mutable)
Create a new, uninitialized XPooledString using this type's
default XString.Factory . |
static XPooledString |
create(String initialValue,
boolean mutable)
Create a new XPooledString initialized to the given value using this
type's default XString.Factory . |
static XPooledString |
create(XString initialValue,
boolean mutable)
Create a new XPooledString initialized to the given value using this type's
default XString.Factory . |
static XString.Factory<XPooledString> |
newFactory(String name,
int stringLength,
boolean pooled,
int preallocationCount,
boolean threaded,
boolean isNative)
Construct a new Factory for XPooledString s. |
static XString.Factory<XPooledString> |
newFactory(String name,
Map<String,Object> props)
Construct a new Factory for XPooledString s. |
Methods inherited from class com.neeve.lang.XAbstractPooledString |
---|
acquire, dispose, getOwnershipCount, getPool, init, setPool |
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, 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 |
Field Detail |
---|
public static final XString.Factory<XPooledString> FACTORY
Method Detail |
---|
public static XString.Factory<XPooledString> newFactory(String name, int stringLength, boolean pooled, int preallocationCount, boolean threaded, boolean isNative)
XPooledString
s.
name
- A name unique to this factory type which is used to uniquely identify the underlying pool.stringLength
- The expected length of the string which is used to size its backing buffer.isNative
- Whether or not the XPooledString
s should use native backing buffers (when enabled/supported)pooled
- Whether or not to back the factory with a pool.preallocationCount
- The number of XPooledString
to preallocate.threaded
- Whether or not the backing pool should be thread safe.
public static XString.Factory<XPooledString> newFactory(String name, Map<String,Object> props)
XPooledString
s.
See XString.Factory
for a listing of property names.
name
- A name unique to this factory type which is used to uniquely identify the underlying pool.props
- Properties used to configure the Factory.
public static final XPooledString create()
XPooledString
using this type's
default XString.Factory
.
XPooledString
.public static final XPooledString create(boolean mutable)
XPooledString
using this type's
default XString.Factory
.
mutable
- Whether the returned XPooledString
is mutable
XPooledString
.public static final XPooledString create(String initialValue, boolean mutable)
XPooledString
initialized to the given value using this
type's default XString.Factory
.
This method does not preallocate the backing buffer. The caller may call
XString.getBackingBuffer()
on the returned string to create the backing
buffer based on the lenght of the initial value.
mutable
- Whether the returned XPooledString
is mutableinitialValue
- the initial String value for the new XPooledString
.
public static final XPooledString create(XString initialValue, boolean mutable)
XPooledString
initialized to the given value using this type's
default XString.Factory
.
mutable
- Whether the returned XPooledString
is mutableinitialValue
- the initial String value for the new XPooledString
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |