Created
January 20, 2018 14:16
-
-
Save FilipeLipan/ae9ad4fcae3caa609d4bc9744b3359bd to your computer and use it in GitHub Desktop.
kotlin enum
This file contains 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
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