Skip to content

Instantly share code, notes, and snippets.

@mariusz-blaszczak
Created August 28, 2018 10:31
Show Gist options
  • Save mariusz-blaszczak/dc3ff74b21b0a6921fe8dca798bd6800 to your computer and use it in GitHub Desktop.
Save mariusz-blaszczak/dc3ff74b21b0a6921fe8dca798bd6800 to your computer and use it in GitHub Desktop.
object AppCache {
var lockState: LockState? = null
set(value) {
if (value == null) return
if (field == null || field!!.created_at.before(value.created_at)) {
field = value
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment