Package | Description |
---|---|
com.google.common.cache |
This package contains caching utilities.
|
Modifier and Type | Field and Description |
---|---|
(package private) LocalCache.Segment<K,V> |
LocalCache.HashIterator.currentSegment |
(package private) LocalCache.Segment<K,V>[] |
LocalCache.segments
The segments, each of which is a specialized hash table.
|
Modifier and Type | Method and Description |
---|---|
(package private) LocalCache.Segment<K,V> |
LocalCache.createSegment(int initialCapacity,
long maxSegmentWeight,
AbstractCache.StatsCounter statsCounter) |
(package private) LocalCache.Segment<K,V>[] |
LocalCache.newSegmentArray(int ssize) |
(package private) LocalCache.Segment<K,V> |
LocalCache.segmentFor(int hash)
Returns the segment that should be used for a key with the given hash.
|
Modifier and Type | Method and Description |
---|---|
(package private) <K,V> ReferenceEntry<K,V> |
LocalCache.EntryFactory.copyEntry(LocalCache.Segment<K,V> segment,
ReferenceEntry<K,V> original,
ReferenceEntry<K,V> newNext)
Copies an entry, assigning it a new
next entry. |
(package private) abstract <K,V> ReferenceEntry<K,V> |
LocalCache.EntryFactory.newEntry(LocalCache.Segment<K,V> segment,
K key,
int hash,
ReferenceEntry<K,V> next)
Creates a new entry.
|
(package private) abstract <K,V> LocalCache.ValueReference<K,V> |
LocalCache.Strength.referenceValue(LocalCache.Segment<K,V> segment,
ReferenceEntry<K,V> entry,
V value,
int weight)
Creates a reference for the given value according to this value strength.
|