- Type Parameters:
K- The key type for this entry size calculator
V- The value type for this entry size calculator
- All Known Implementing Classes:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface EntrySizeCalculator<K,
calculateSizeMethod used to calculate how much memory in size the key and value use.
key- The key for this entry to be used in size calculation
value- The value for this entry to be used in size calculation
- The size approximately in memory the key and value use