mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2025-09-04 02:05: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?
|
else getSerializableExtra(key) as? T?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* [List]<[T]> 转换为 [ArrayList]<[T]>
|
||||||
|
* @return [ArrayList]<[T]>
|
||||||
|
*/
|
||||||
|
fun <T> List<T>.toArrayList() = toMutableList() as ArrayList<T>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 计算与当前时间戳相差的友好时间
|
* 计算与当前时间戳相差的友好时间
|
||||||
* @param now 刚刚
|
* @param now 刚刚
|
||||||
|
Reference in New Issue
Block a user