YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.util.ConfigKeyedCache< K, V > Class Template Reference

Remembers values that depend on a configuration (for example the night mode of the theme): when the configuration changes, everything is dropped. More...

Collaboration diagram for de.yaacc.util.ConfigKeyedCache< K, V >:
Collaboration graph

Public Member Functions

V get (int currentConfig, K key, Supplier< V > creator)
 
int size ()
 

Detailed Description

Remembers values that depend on a configuration (for example the night mode of the theme): when the configuration changes, everything is dropped.

Not thread safe, meant for the main thread. No Android classes.

Member Function Documentation

◆ get()

V de.yaacc.util.ConfigKeyedCache< K, V >.get ( int currentConfig,
K key,
Supplier< V > creator )
Parameters
currentConfiga value that changes whenever the cached values would be stale
creatorbuilds the value on a miss; a null result is not remembered

The documentation for this class was generated from the following file: