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 |
|---|
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, rematchesprotected E value
Pool.contains(Object) or Pool.remove(Object), the value may not be an instance of E.public 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.AccessUnitPool.AccessUnit.values and Pool.AccessUnit.entries
and then reset the Pool.AccessUnit.valuesLength to 0reset in class Pool.AccessUnit<E>Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature