public final class XPooledString extends XAbstractPooledString<XPooledString>
Note: This class is currently intended for internal use only.
XString.ImmutableExtension| Modifier and Type | Field and Description |
|---|---|
static IXStringFactory<XPooledString> |
FACTORY
The default factory used to create pooled string instances.
|
| Modifier and Type | Method and Description |
|---|---|
static XPooledString |
create()
Create a new, mutable, uninitialized
XPooledString using this type's
default IXStringFactory. |
static XPooledString |
create(boolean mutable)
Create a new, uninitialized
XPooledString using this type's
default IXStringFactory. |
static XPooledString |
create(String initialValue,
boolean mutable)
Create a new
XPooledString initialized to the given value using this
type's default IXStringFactory. |
static XPooledString |
create(XString initialValue,
boolean mutable)
Create a new
XPooledString initialized to the given value using this type's
default IXStringFactory. |
static IXStringFactory<XPooledString> |
newFactory(String name,
Map<String,Object> props)
Construct a new Factory for
XPooledStrings. |
static IXStringFactory<XPooledString> |
newFactory(String name,
short initialCapacity,
boolean pooled,
int preallocationCount,
boolean threaded)
Construct a new Factory for
XPooledStrings. |
acquire, dispose, getOwnershipCount, getPool, init, setPoolappend, 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, 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 static final IXStringFactory<XPooledString> FACTORY
public static IXStringFactory<XPooledString> newFactory(String name, short initialCapacity, boolean pooled, int preallocationCount, boolean threaded)
XPooledStrings.name - A name unique to this factory type which is used to uniquely identify the underlying pool.initialCapacity - The initial capacity of the created string's backing storagepooled - 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 IXStringFactory<XPooledString> newFactory(String name, Map<String,Object> props)
XPooledStrings.
See IXStringFactory 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 IXStringFactory.XPooledString.public static final XPooledString create(boolean mutable)
XPooledString using this type's
default IXStringFactory.mutable - Whether the returned XPooledString is mutableXPooledString.public static final XPooledString create(String initialValue, boolean mutable)
XPooledString initialized to the given value using this
type's default IXStringFactory.
This method does not preallocate the backing buffer. The caller may call
#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 IXStringFactory.
mutable - Whether the returned XPooledString is mutableinitialValue - the initial String value for the new XPooledString.Copyright © 2019 N5 Technologies, Inc. All Rights Reserved.