protected static class SegmentSequence.SegmentSequencePool.SegmentsAndSegmentsAccessUnit extends SegmentSequence.SegmentSequencePool.AccessUnitBase
Modifier and Type | Class and Description |
---|---|
protected static class |
SegmentSequence.SegmentSequencePool.SegmentsAndSegmentsAccessUnit.Queue |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
delimiter
The delimiter being accessed.
|
protected boolean |
needsToIntern
Whether the strings in the second segments need interning.
|
protected java.lang.String[] |
segments1
The first segments being accessed.
|
protected java.lang.String[] |
segments2
The second segments being accessed.
|
createdEntry, entries, hashCode, matchingIndex, next, queue, values, valuesLength
Modifier | Constructor and Description |
---|---|
protected |
SegmentSequence.SegmentSequencePool.SegmentsAndSegmentsAccessUnit(SegmentSequence.SegmentSequencePool.SegmentsAndSegmentsAccessUnit.Queue queue) |
Modifier and Type | Method and Description |
---|---|
SegmentSequence |
getInternalizedValue()
Gets the value that should be added to the pool.
|
protected boolean |
matches(SegmentSequence 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 delimiter,
java.lang.String[] segments1,
java.lang.String[] segments2,
boolean needsToIntern)
Caches the parameters and computes the hash code.
|
getValue, hashCode, setArbitraryValue, setValue
add, getEntry, match, rematches
protected java.lang.String delimiter
protected java.lang.String[] segments1
protected java.lang.String[] segments2
protected boolean needsToIntern
protected SegmentSequence.SegmentSequencePool.SegmentsAndSegmentsAccessUnit(SegmentSequence.SegmentSequencePool.SegmentsAndSegmentsAccessUnit.Queue queue)
protected void setValue(int hashCode, java.lang.String delimiter, java.lang.String[] segments1, java.lang.String[] segments2, boolean needsToIntern)
public SegmentSequence getInternalizedValue()
Pool.AccessUnit
getInternalizedValue
in class Pool.AccessUnit<SegmentSequence>
protected boolean matches(SegmentSequence value)
Pool.AccessUnit
Object.equals(Object)
.matches
in class Pool.AccessUnit<SegmentSequence>
public void reset(boolean isExclusive)
Pool.AccessUnit
#getValues()
and #getEntries()
and then reset the Pool.AccessUnit.valuesLength
to 0reset
in class Pool.AccessUnit<SegmentSequence>