【发布时间】:2020-05-21 02:03:40
【问题描述】:
这些注解在 android 中的 Kotlin 代码中是什么意思?
@SuppressLint("SimpleDateFormat")
fun convertLongToDateString(systemTime: Long): String {
return SimpleDateFormat("EEEE MMM-dd-yyyy' Time: 'HH:mm")
.format(systemTime).toString()
}
@Entity(tablename = "daily_sleep_quality_table")
data class SleepNight(...)
....
....
【问题讨论】:
-
我很困惑,你已经用标签
android-annotations和java-annotations标记了你自己的问题,所以你知道这些 是 注释,你的问题到底是什么那么呢? -
我只是想知道它们在代码中的作用或含义。它们看起来像 Python 装饰器。
标签: android kotlin android-annotations java-annotations