Uses of Class
com.google.common.cache.LocalCache.Segment
-
Packages that use LocalCache.Segment Package Description com.google.common.cache This package contains caching utilities. -
-
Uses of LocalCache.Segment in com.google.common.cache
Fields in com.google.common.cache declared as LocalCache.Segment Modifier and Type Field 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.Methods in com.google.common.cache that return LocalCache.Segment Modifier and Type Method 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.Methods in com.google.common.cache with parameters of type LocalCache.Segment Modifier and Type Method 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 newnext
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.
-