public static final class BoundedEquivalentConcurrentHashMapV8.NodeSizeCalculatorWrapper<K,V> extends AbstractEntrySizeCalculatorHelper<K,V>
OBJECT_SIZE, POINTER_SIZE| Constructor and Description |
|---|
NodeSizeCalculatorWrapper(EntrySizeCalculator<? super K,? super V> calculator) |
| Modifier and Type | Method and Description |
|---|---|
long |
calculateSize(K key,
V value)
Method used to calculate how much memory in size the key and value use.
|
roundUpToNearest8public NodeSizeCalculatorWrapper(EntrySizeCalculator<? super K,? super V> calculator)
public long calculateSize(K key, V value)
EntrySizeCalculatorkey - The key for this entry to be used in size calculationvalue - The value for this entry to be used in size calculationCopyright © 2024 JBoss, a division of Red Hat. All rights reserved.