public class PrimitiveEntrySizeCalculator extends AbstractEntrySizeCalculatorHelper<Object,Object>
OBJECT_SIZE, POINTER_SIZE
Constructor and Description |
---|
PrimitiveEntrySizeCalculator() |
Modifier and Type | Method and Description |
---|---|
long |
calculateSize(Object key,
Object value)
Method used to calculate how much memory in size the key and value use.
|
protected long |
handleObject(Object object) |
roundUpToNearest8
public long calculateSize(Object key, Object value)
EntrySizeCalculator
key
- The key for this entry to be used in size calculationvalue
- The value for this entry to be used in size calculationprotected long handleObject(Object object)
Copyright © 2021 JBoss, a division of Red Hat. All rights reserved.