static enum MapMakerInternalMap.EntryFactory extends java.lang.Enum<MapMakerInternalMap.EntryFactory>
Enum Constant and Description |
---|
STRONG |
STRONG_EVICTABLE |
STRONG_EXPIRABLE |
STRONG_EXPIRABLE_EVICTABLE |
WEAK |
WEAK_EVICTABLE |
WEAK_EXPIRABLE |
WEAK_EXPIRABLE_EVICTABLE |
Modifier and Type | Field and Description |
---|---|
(package private) static int |
EVICTABLE_MASK |
(package private) static int |
EXPIRABLE_MASK
Masks used to compute indices in the following table.
|
(package private) static MapMakerInternalMap.EntryFactory[][] |
factories
Look-up table for factories.
|
Modifier and Type | Method and Description |
---|---|
(package private) <K,V> MapMakerInternalMap.ReferenceEntry<K,V> |
copyEntry(MapMakerInternalMap.Segment<K,V> segment,
MapMakerInternalMap.ReferenceEntry<K,V> original,
MapMakerInternalMap.ReferenceEntry<K,V> newNext)
Copies an entry, assigning it a new
next entry. |
(package private) <K,V> void |
copyEvictableEntry(MapMakerInternalMap.ReferenceEntry<K,V> original,
MapMakerInternalMap.ReferenceEntry<K,V> newEntry) |
(package private) <K,V> void |
copyExpirableEntry(MapMakerInternalMap.ReferenceEntry<K,V> original,
MapMakerInternalMap.ReferenceEntry<K,V> newEntry) |
(package private) static MapMakerInternalMap.EntryFactory |
getFactory(MapMakerInternalMap.Strength keyStrength,
boolean expireAfterWrite,
boolean evictsBySize) |
(package private) abstract <K,V> MapMakerInternalMap.ReferenceEntry<K,V> |
newEntry(MapMakerInternalMap.Segment<K,V> segment,
K key,
int hash,
MapMakerInternalMap.ReferenceEntry<K,V> next)
Creates a new entry.
|
static MapMakerInternalMap.EntryFactory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MapMakerInternalMap.EntryFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MapMakerInternalMap.EntryFactory STRONG
public static final MapMakerInternalMap.EntryFactory STRONG_EXPIRABLE
public static final MapMakerInternalMap.EntryFactory STRONG_EVICTABLE
public static final MapMakerInternalMap.EntryFactory STRONG_EXPIRABLE_EVICTABLE
public static final MapMakerInternalMap.EntryFactory WEAK
public static final MapMakerInternalMap.EntryFactory WEAK_EXPIRABLE
public static final MapMakerInternalMap.EntryFactory WEAK_EVICTABLE
public static final MapMakerInternalMap.EntryFactory WEAK_EXPIRABLE_EVICTABLE
static final int EXPIRABLE_MASK
static final int EVICTABLE_MASK
static final MapMakerInternalMap.EntryFactory[][] factories
public static MapMakerInternalMap.EntryFactory[] values()
for (MapMakerInternalMap.EntryFactory c : MapMakerInternalMap.EntryFactory.values()) System.out.println(c);
public static MapMakerInternalMap.EntryFactory valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullstatic MapMakerInternalMap.EntryFactory getFactory(MapMakerInternalMap.Strength keyStrength, boolean expireAfterWrite, boolean evictsBySize)
abstract <K,V> MapMakerInternalMap.ReferenceEntry<K,V> newEntry(MapMakerInternalMap.Segment<K,V> segment, K key, int hash, @Nullable MapMakerInternalMap.ReferenceEntry<K,V> next)
segment
- to create the entry forkey
- of the entryhash
- of the keynext
- entry in the same bucket<K,V> MapMakerInternalMap.ReferenceEntry<K,V> copyEntry(MapMakerInternalMap.Segment<K,V> segment, MapMakerInternalMap.ReferenceEntry<K,V> original, MapMakerInternalMap.ReferenceEntry<K,V> newNext)
next
entry.original
- the entry to copynewNext
- entry in the same bucket<K,V> void copyExpirableEntry(MapMakerInternalMap.ReferenceEntry<K,V> original, MapMakerInternalMap.ReferenceEntry<K,V> newEntry)
<K,V> void copyEvictableEntry(MapMakerInternalMap.ReferenceEntry<K,V> original, MapMakerInternalMap.ReferenceEntry<K,V> newEntry)