|
YAACC - UPNP Client and Server
|
Remembers values that depend on a configuration (for example the night mode of the theme): when the configuration changes, everything is dropped. More...

Public Member Functions | |
| V | get (int currentConfig, K key, Supplier< V > creator) |
| int | size () |
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.
| V de.yaacc.util.ConfigKeyedCache< K, V >.get | ( | int | currentConfig, |
| K | key, | ||
| Supplier< V > | creator ) |
| currentConfig | a value that changes whenever the cached values would be stale |
| creator | builds the value on a miss; a null result is not remembered |