protected static class SegmentSequence.StringArrayPool.SegmentsAndSubsegmentAccessUnit extends SegmentSequence.StringArrayPool.AccessUnitBase
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SegmentSequence.StringArrayPool.SegmentsAndSubsegmentAccessUnit.Queue |
| Modifier and Type | Field and Description |
|---|---|
protected int |
count
The number of characters from the offset.
|
protected int |
offset
The offset within the segment.
|
protected java.lang.String |
segment
The one additional segment.
|
protected int |
segmentCount
The number of segments to consider.
|
protected int |
segmentHashCode
Hash code of character range of the additional segment.
|
protected java.lang.String[] |
segments
The segments being accessed.
|
stringAccessUnit, substringAccessUnitcreatedEntry, entries, hashCode, matchingIndex, next, queue, values, valuesLength| Modifier | Constructor and Description |
|---|---|
protected |
SegmentsAndSubsegmentAccessUnit(SegmentSequence.StringArrayPool.SegmentsAndSubsegmentAccessUnit.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(int hashCode,
java.lang.String[] segments,
int segmentCount,
java.lang.String segment,
int offset,
int count,
int segmentHashCode)
Caches the parameters and computes the hash code.
|
protected void |
setValue(java.lang.String[] segments,
int segmentCount,
java.lang.String segment,
int offset,
int count,
int segmentHashCode)
Caches the parameters and computes the hash code.
|
getValue, internString, internString, setArbitraryValue, setValueadd, getEntry, match, rematchesprotected java.lang.String[] segments
protected int segmentCount
protected java.lang.String segment
protected int offset
protected int count
protected int segmentHashCode
protected SegmentsAndSubsegmentAccessUnit(SegmentSequence.StringArrayPool.SegmentsAndSubsegmentAccessUnit.Queue queue)
protected void setValue(int hashCode,
java.lang.String[] segments,
int segmentCount,
java.lang.String segment,
int offset,
int count,
int segmentHashCode)
protected void setValue(java.lang.String[] segments,
int segmentCount,
java.lang.String segment,
int offset,
int count,
int segmentHashCode)
protected boolean matches(java.lang.String[] value)
Pool.AccessUnitObject.equals(Object).matches in class SegmentSequence.StringArrayPool.AccessUnitBasepublic java.lang.String[] getInternalizedValue()
Pool.AccessUnitgetInternalizedValue in class Pool.AccessUnit<java.lang.String[]>public void reset(boolean isExclusive)
Pool.AccessUnitPool.AccessUnit.values and Pool.AccessUnit.entries
and then reset the Pool.AccessUnit.valuesLength to 0reset in class Pool.AccessUnit<java.lang.String[]>Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature