Created
August 28, 2018 10:31
-
-
Save mariusz-blaszczak/dc3ff74b21b0a6921fe8dca798bd6800 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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