protected static class SegmentSequence.StringArrayPool.SubstringAccessUnit extends SegmentSequence.StringArrayPool.AccessUnitBase
Modifier and Type | Class and Description |
---|---|
protected static class |
SegmentSequence.StringArrayPool.SubstringAccessUnit.Queue |
Modifier and Type | Field and Description |
---|---|
protected int |
count
The number of characters from the offset.
|
protected int |
offset
The offset within the value.
|
protected java.lang.String |
value
The value being accessed.
|
stringAccessUnit, substringAccessUnit
createdEntry, entries, hashCode, matchingIndex, next, queue, values, valuesLength
Modifier | Constructor and Description |
---|---|
protected |
SegmentSequence.StringArrayPool.SubstringAccessUnit(SegmentSequence.StringArrayPool.SubstringAccessUnit.Queue queue)
Creates an instance managed by the given queue.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getInternalizedValue()
Gets the value that should be added to the pool.
|
protected boolean |
matches(java.lang.String[] value)
Used to determine whether the given value from the pool is equal to the value being accessed.
|
void |
reset(boolean isExclusive)
Prepare the access unit for reuse.
|
protected void |
setValue(java.lang.String value,
int offset,
int count,
int hashCode)
Caches the parameters.
|
getValue, internString, internString, setArbitraryValue, setValue
add, getEntry, match, rematches
protected java.lang.String value
protected int offset
protected int count
protected SegmentSequence.StringArrayPool.SubstringAccessUnit(SegmentSequence.StringArrayPool.SubstringAccessUnit.Queue queue)
protected void setValue(java.lang.String value, int offset, int count, int hashCode)
protected boolean matches(java.lang.String[] value)
Pool.AccessUnit
Object.equals(Object)
.matches
in class SegmentSequence.StringArrayPool.AccessUnitBase
public java.lang.String[] getInternalizedValue()
Pool.AccessUnit
getInternalizedValue
in class Pool.AccessUnit<java.lang.String[]>
public void reset(boolean isExclusive)
Pool.AccessUnit
#getValues()
and #getEntries()
and then reset the Pool.AccessUnit.valuesLength
to 0reset
in class Pool.AccessUnit<java.lang.String[]>