Define StringDef in kotlin
2020-04-08 本文已影响0人
旺仔爸
Define StringDef in kotlin
@Retention(AnnotationRetention.SOURCE)
@StringDef(NORTH, SOUTH)
annotation class FilterType {
companion object {
const val NORTH = "NORTH"
const val SOUTH = "SOUTH"
}
}