mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2025-09-01 08:45:16 +08:00
Added List.toArrayList function in FunctionFactory
This commit is contained in:
@@ -175,6 +175,12 @@ inline fun <reified T : Serializable> Intent.getSerializableExtraCompat(key: Str
|
||||
else getSerializableExtra(key) as? T?
|
||||
}
|
||||
|
||||
/**
|
||||
* [List]<[T]> 转换为 [ArrayList]<[T]>
|
||||
* @return [ArrayList]<[T]>
|
||||
*/
|
||||
fun <T> List<T>.toArrayList() = toMutableList() as ArrayList<T>
|
||||
|
||||
/**
|
||||
* 计算与当前时间戳相差的友好时间
|
||||
* @param now 刚刚
|
||||
|
Reference in New Issue
Block a user