Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.55 KB

File metadata and controls

23 lines (16 loc) · 1.55 KB

//app/com.fredhappyface.ewesticker.utilities/Cache

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

Constructors

Cache [androidJvm]
constructor(capacity: Int = 30)

Functions

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