Skip to content

Instantly share code, notes, and snippets.

@FilipeLipan
Created January 20, 2018 14:16
Show Gist options
  • Save FilipeLipan/ae9ad4fcae3caa609d4bc9744b3359bd to your computer and use it in GitHub Desktop.
Save FilipeLipan/ae9ad4fcae3caa609d4bc9744b3359bd to your computer and use it in GitHub Desktop.
kotlin enum
class GroupUpdateStatusEnum {
companion object {
@IntDef(OPTION1, OPTION2)
@Retention(AnnotationRetention.SOURCE)
annotation class GroupUpdateStatus
const val OPTION1 = 2L
const val OPTION2 = 3L
}
@GroupUpdateStatus
private var groupUpdateStatus: Long? = null
fun getValue(): Long? {
return groupUpdateStatus
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment