Class CacheImplementationUtils
- java.lang.Object
-
- io.github.dhruv1110.jcachex.internal.util.CacheImplementationUtils
-
@Deprecated public final class CacheImplementationUtils extends Object
Deprecated.UseCacheCommonOperations
directly for new code.Utility class that extracts common patterns found across cache implementations.This class has been updated to delegate to
CacheCommonOperations
to eliminate duplication. It remains for backward compatibility.- Since:
- 1.0.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <K> boolean
containsKey(K key, ConcurrentHashMap<K,?> data)
Deprecated.static CacheStats
createComprehensiveStats(AtomicLong hitCount, AtomicLong missCount, AtomicLong loadCount, AtomicLong loadTime, AtomicLong evictionCount)
static <K,V,E>
Set<Map.Entry<K,V>>createEntriesView(ConcurrentHashMap<K,E> data, Function<E,V> valueExtractor)
static <K,V>
Set<K>createKeysView(ConcurrentHashMap<K,? extends Object> data)
Deprecated.static <K,V>
Map.Entry<K,V>createMapEntry(K key, V value)
Deprecated.static <K,V>
CacheConfig<K,V>createStandardConfig(long maximumSize, boolean statsEnabled)
Deprecated.static CacheStats
createStandardStats(AtomicLong hitCount, AtomicLong missCount)
Deprecated.static <K,V,E>
Collection<V>createValuesView(ConcurrentHashMap<K,E> data, Function<E,V> valueExtractor)
static boolean
isValidKey(Object key)
Deprecated.static boolean
isValidValue(Object value)
Deprecated.
-
-
-
Method Detail
-
createStandardStats
@Deprecated public static CacheStats createStandardStats(AtomicLong hitCount, AtomicLong missCount)
Deprecated.
-
createComprehensiveStats
@Deprecated public static CacheStats createComprehensiveStats(AtomicLong hitCount, AtomicLong missCount, AtomicLong loadCount, AtomicLong loadTime, AtomicLong evictionCount)
-
createStandardConfig
@Deprecated public static <K,V> CacheConfig<K,V> createStandardConfig(long maximumSize, boolean statsEnabled)
Deprecated.
-
createKeysView
@Deprecated public static <K,V> Set<K> createKeysView(ConcurrentHashMap<K,? extends Object> data)
Deprecated.
-
createValuesView
@Deprecated public static <K,V,E> Collection<V> createValuesView(ConcurrentHashMap<K,E> data, Function<E,V> valueExtractor)
-
createEntriesView
@Deprecated public static <K,V,E> Set<Map.Entry<K,V>> createEntriesView(ConcurrentHashMap<K,E> data, Function<E,V> valueExtractor)
-
isValidKey
@Deprecated public static boolean isValidKey(Object key)
Deprecated.
-
isValidValue
@Deprecated public static boolean isValidValue(Object value)
Deprecated.
-
containsKey
@Deprecated public static <K> boolean containsKey(K key, ConcurrentHashMap<K,?> data)
Deprecated.
-
createMapEntry
@Deprecated public static <K,V> Map.Entry<K,V> createMapEntry(K key, V value)
Deprecated.
-
-