protected static class URI.URIPool.PlatformAccessUnit extends URI.URIPool.URIPoolAccessUnitBase
Modifier and Type | Class and Description |
---|---|
protected static class |
URI.URIPool.PlatformAccessUnit.Queue |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
base
The base that implicitly precedes the
URI.path() . |
protected char[] |
characters
A buffer uses for processing the path.
|
protected boolean |
encode
Whether the pathName needs encoding.
|
protected java.lang.String |
encodedPath
The path after it's been encoded.
|
protected java.lang.String |
path
The path being accessed.
|
protected static int |
PLATFORM_PLUGIN_BASE_FULL_HASH_CODE
The hash code of
"platform:/plugin/" . |
protected static int |
PLATFORM_PLUGIN_BASE_INITIAL_HASH_CODE
The hash code of
"platform:/plugin/" . |
protected static int |
PLATFORM_RESOURCE_BASE_FULL_HASH_CODE
The hash code of
"platform:/resource/" . |
protected static int |
PLATFORM_RESOURCE_BASE_INITIAL_HASH_CODE
The hash code of
"platform:/resource" . |
protected int[] |
segmentBoundaries
The boundaries of the path segments.
|
protected int |
segmentCount
The number of
URI.segments() . |
protected int[] |
segmentHashCodes
The hash code of the path segments.
|
protected java.lang.String[] |
segments
The accumulated segments pulled from the path.
|
protected int |
usedSegmentCount
The number of segments populated with strings during intern that need to be nulled during reset.
|
charactersAccessUnit, stringAccessUnit, stringArraySegmentsAndSegmentCountAccessUnit, stringPoolEntry, substringAccessUnit
createdEntry, entries, hashCode, matchingIndex, next, queue, values, valuesLength
Modifier | Constructor and Description |
---|---|
protected |
URI.URIPool.PlatformAccessUnit(URI.URIPool.PlatformAccessUnit.Queue queue)
Creates and instance managed by the given queue.
|
Modifier and Type | Method and Description |
---|---|
URI |
getInternalizedValue()
Gets the value that should be added to the pool.
|
protected boolean |
matches(URI 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 base,
java.lang.String path,
boolean encode)
Caches the parameters and computes the hash code, which can involve encoding the path.
|
getValue, intern, intern, intern, intern, intern, intern, internArray, setArbitraryValue, setValue
add, getEntry, match, rematches
protected static final int PLATFORM_RESOURCE_BASE_FULL_HASH_CODE
"platform:/resource/"
.protected static final int PLATFORM_PLUGIN_BASE_FULL_HASH_CODE
"platform:/plugin/"
.protected static final int PLATFORM_RESOURCE_BASE_INITIAL_HASH_CODE
"platform:/resource"
.protected static final int PLATFORM_PLUGIN_BASE_INITIAL_HASH_CODE
"platform:/plugin/"
.protected java.lang.String base
URI.path()
.protected java.lang.String path
protected boolean encode
protected char[] characters
protected java.lang.String[] segments
protected int segmentCount
URI.segments()
.protected int usedSegmentCount
protected int[] segmentBoundaries
protected int[] segmentHashCodes
protected java.lang.String encodedPath
protected URI.URIPool.PlatformAccessUnit(URI.URIPool.PlatformAccessUnit.Queue queue)
protected void setValue(java.lang.String base, java.lang.String path, boolean encode)
protected boolean matches(URI value)
Pool.AccessUnit
Object.equals(Object)
.matches
in class Pool.AccessUnit<URI>
public URI getInternalizedValue()
Pool.AccessUnit
getInternalizedValue
in class Pool.AccessUnit<URI>
public void reset(boolean isExclusive)
Pool.AccessUnit
#getValues()
and #getEntries()
and then reset the Pool.AccessUnit.valuesLength
to 0reset
in class URI.URIPool.URIPoolAccessUnitBase