protected static class URI.URIPool.URIComponentsAccessUnit extends URI.URIPool.URIPoolAccessUnitBase
Modifier and Type | Class and Description |
---|---|
protected static class |
URI.URIPool.URIComponentsAccessUnit.Queue |
Modifier and Type | Field and Description |
---|---|
protected static int |
VALIDATE_ALL
A value for
validate that implies all components need to be validated. |
protected static int |
VALIDATE_NONE
A value for
validate that implies no checking or interning of components is required. |
protected static int |
VALIDATE_QUERY
A value for
validate that implies only the query componet needs validating. |
charactersAccessUnit, stringAccessUnit, stringArraySegmentsAndSegmentCountAccessUnit, stringPoolEntry, substringAccessUnit
createdEntry, entries, hashCode, matchingIndex, next, queue, values, valuesLength
Modifier | Constructor and Description |
---|---|
protected |
URI.URIPool.URIComponentsAccessUnit(URI.URIPool.URIComponentsAccessUnit.Queue queue)
Creates an 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 java.lang.String[] |
internArray(java.lang.String[] segments,
int count) |
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(boolean hierarchical,
java.lang.String scheme,
java.lang.String authority,
java.lang.String device,
boolean absolutePath,
java.lang.String[] segments,
java.lang.String query,
int hashCode)
Caches the parameters.
|
protected void |
setValue(int validate,
boolean hierarchical,
java.lang.String scheme,
java.lang.String authority,
java.lang.String device,
boolean absolutePath,
java.lang.String[] segments,
java.lang.String query)
Caches the parameters and computes the hash code.
|
getValue, intern, intern, intern, intern, intern, intern, internArray, setArbitraryValue, setValue
add, getEntry, match, rematches
protected static final int VALIDATE_NONE
validate
that implies no checking or interning of components is required.protected static final int VALIDATE_ALL
validate
that implies all components need to be validated.protected static final int VALIDATE_QUERY
validate
that implies only the query componet needs validating.protected URI.URIPool.URIComponentsAccessUnit(URI.URIPool.URIComponentsAccessUnit.Queue queue)
queue
- protected java.lang.String[] internArray(java.lang.String[] segments, int count)
protected void setValue(boolean hierarchical, java.lang.String scheme, java.lang.String authority, java.lang.String device, boolean absolutePath, java.lang.String[] segments, java.lang.String query, int hashCode)
protected void setValue(int validate, boolean hierarchical, java.lang.String scheme, java.lang.String authority, java.lang.String device, boolean absolutePath, java.lang.String[] segments, java.lang.String query)
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