@ThreadSafe
public interface LevelUpCodeCache
LevelUpCodeLoader
. This cache must be
thread safe.Modifier and Type | Method and Description |
---|---|
LevelUpQrCodeGenerator.LevelUpQrCodeImage |
getCode(String key) |
boolean |
hasCode(String key) |
void |
putCode(String key,
LevelUpQrCodeGenerator.LevelUpQrCodeImage image) |
void putCode(String key, LevelUpQrCodeGenerator.LevelUpQrCodeImage image)
key
- the key under which to store the code. This should be unique for each code.image
- the code image. This should be the smallest-possible code image.LevelUpQrCodeGenerator.LevelUpQrCodeImage getCode(String key)
key
- the key under which the image is stored.null
if there is no entry.boolean hasCode(String key)
key
- the key under which the image is stored.