//app/com.fredhappyface.ewesticker.utilities/Cache
[androidJvm]
class Cache(capacity: Int = 30)
Basically this behaved like an ordered set with some maximum capacity. When this capacity is exceeded an element is removed from the start
| Cache | [androidJvm] constructor(capacity: Int = 30) |
| Name | Summary |
|---|---|
| add | [androidJvm] fun add(elem: String): String? Logic to add an element |
| fromSharedPref | [androidJvm] fun fromSharedPref(raw: String) convert from a string (shared-pref) to this |
| toFiles | [androidJvm] fun toFiles(): Array<File> convert this to a array of files |
| toSharedPref | [androidJvm] fun toSharedPref(): String convert this to a string to write to shared-pref |