protected static class Pool.ObjectAccessUnit<E> extends Pool.AccessUnit<E>
Modifier and Type | Class and Description |
---|---|
protected static class |
Pool.ObjectAccessUnit.Queue<E> |
Modifier and Type | Field and Description |
---|---|
protected E |
value
The object being accessed;
In the case of
Pool.contains(Object) or Pool.remove(Object) , the value may not be an instance of E . |
createdEntry, entries, hashCode, matchingIndex, next, queue, values, valuesLength
Constructor and Description |
---|
Pool.ObjectAccessUnit(Pool.AccessUnit.Queue<E> queue) |
Modifier and Type | Method and Description |
---|---|
protected E |
getValue() |
void |
reset(boolean isExclusive)
Prepare the access unit for reuse.
|
protected boolean |
setArbitraryValue(java.lang.Object value) |
protected void |
setValue(E value) |
protected void |
setValue(E value,
int hashCode) |
add, getEntry, getInternalizedValue, match, matches, rematches
protected E value
Pool.contains(Object)
or Pool.remove(Object)
, the value may not be an instance of E
.public Pool.ObjectAccessUnit(Pool.AccessUnit.Queue<E> queue)
protected E getValue()
getValue
in class Pool.AccessUnit<E>
protected void setValue(E value)
setValue
in class Pool.AccessUnit<E>
protected void setValue(E value, int hashCode)
protected boolean setArbitraryValue(java.lang.Object value)
setArbitraryValue
in class Pool.AccessUnit<E>
public void reset(boolean isExclusive)
Pool.AccessUnit
#getValues()
and #getEntries()
and then reset the Pool.AccessUnit.valuesLength
to 0reset
in class Pool.AccessUnit<E>