java.util.IdentityHashMap , java.util.WeakHashMap
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final Object | |
| private final ReferenceQueue | |
| private int | |
| private volatile WeakIdentityMap. | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract T | |
| public T | |
| private static int | |
| private WeakIdentityMap. | |
| private void | |
| private void |
| MAXIMUM_CAPACITY | back to summary |
|---|---|
| private static final int MAXIMUM_CAPACITY | |
| NULL | back to summary |
|---|---|
| private static final Object NULL | |
| queue | back to summary |
|---|---|
| private final ReferenceQueue<Object> queue | |
| size | back to summary |
|---|---|
| private int size | |
| table | back to summary |
|---|---|
| private volatile WeakIdentityMap. | |
| threshold | back to summary |
|---|---|
| private int threshold | |
| WeakIdentityMap | back to summary |
|---|---|
| pack-priv WeakIdentityMap() | |
| create | back to summary |
|---|---|
| protected abstract T create(Object key) | |
| get | back to summary |
|---|---|
| public T get(Object key) | |
| getIndex | back to summary |
|---|---|
| private static int getIndex(WeakIdentityMap. | |
| newTable | back to summary |
|---|---|
private WeakIdentityMap.
| |
| removeStaleEntries | back to summary |
|---|---|
| private void removeStaleEntries() | |
| transfer | back to summary |
|---|---|
| private void transfer(WeakIdentityMap. | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private volatile WeakIdentityMap. | |
| private volatile T |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean |
| hash | back to summary |
|---|---|
| private final int hash | |
| next | back to summary |
|---|---|
| private volatile WeakIdentityMap. Hides java. | |
| value | back to summary |
|---|---|
| private volatile T value | |
| Entry | back to summary |
|---|---|
| pack-priv Entry(Object key, int hash, T value, ReferenceQueue<Object> queue, WeakIdentityMap. | |
| isMatched | back to summary |
|---|---|
| pack-priv boolean isMatched(Object key, int hash) | |