Interface Weigher<K,V>


@Beta @GwtCompatible @Deprecated(since="2022-12-01") public interface Weigher<K,V>
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
Calculates the weights of cache entries.
Since:
11.0
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    weigh(K key, V value)
    Deprecated.
    Returns the weight of a cache entry.
  • Method Details

    • weigh

      int weigh(K key, V value)
      Deprecated.
      Returns the weight of a cache entry. There is no unit for entry weights; rather they are simply relative to each other.
      Returns:
      the weight of the entry; must be non-negative