K
- type parameter indicating the type of the input key@FunctionalInterface
public interface CacheKey<K>
K
to derive keys that are required by the CacheMap
implementation.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getKey(K input)
Returns the cache key that is created from the provided input key.
|
default java.lang.Object |
getKeyWithContext(K input,
java.lang.Object context)
Returns the cache key that is created from the provided input key and context.
|
java.lang.Object getKey(K input)
input
- the input keydefault java.lang.Object getKeyWithContext(K input, java.lang.Object context)
input
- the input keycontext
- the context