| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private Object[] | |
| private Map | |
| public static final int | |
| private long | |
| private Object[] |
| Modifier and Type | Method and Description |
|---|---|
| public Set | entrySet()
Implements abstract java. Implements java. Returns a |
| public V | get(Object key)
Overrides java. Implements java. Returns the value to which the specified key is mapped,
or |
| public long | |
| public long | |
| private int | |
| public V | put(K key, V value)
Overrides java. Implements java. Put the key and value in the cache and the underlying map. |
| cacheCount | back to summary |
|---|---|
| private long cacheCount | |
| keys | back to summary |
|---|---|
| private Object[] keys | |
| map | back to summary |
|---|---|
| private Map<K, V> map | |
| TABLE_SIZE | back to summary |
|---|---|
| public static final int TABLE_SIZE | |
| totalCount | back to summary |
|---|---|
| private long totalCount | |
| values | back to summary |
|---|---|
| private Object[] values Hides java. | |
| FastCache | back to summary |
|---|---|
| public FastCache(Map<K, V> map) | |
| entrySet | back to summary |
|---|---|
| public Set Implements abstract java. Implements java. Doc from java. Returns a
| |
| get | back to summary |
|---|---|
| public V get(Object key) Overrides java. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| getCacheCount | back to summary |
|---|---|
| public long getCacheCount() | |
| getTotalCount | back to summary |
|---|---|
| public long getTotalCount() | |
| hash | back to summary |
|---|---|
| private int hash(Object key) | |
| put | back to summary |
|---|---|
| public V put(K key, V value) Overrides java. Implements java. Put the key and value in the cache and the underlying map. This writes through to the map, rather than first storing a value in the cache which is only written as required, because that makes it easier to preserve the correct behavior of the map.
| |