library
/
com.secoo.coobox.library.ktx.java.util
Package com.
secoo.
coobox.
library.
ktx.
java.
util
Functions
Functions
getSafely
Link copied to clipboard
fun <
K
,
V
>
HashMap
<
K
,
V
>?.
getSafely
(key:
K
?):
V
?
Content copied to clipboard
安全地根据 Key 获取 HashMap 中对应的 值
safePeek
Link copied to clipboard
fun <
E
>
Stack
<
E
>.
safePeek
():
E
?
Content copied to clipboard
安全地执行peek方法,如果stack为空,返回null
safePop
Link copied to clipboard
fun <
E
>
Stack
<
E
>.
safePop
():
E
?
Content copied to clipboard
安全地执行pop方法,如果stack为空,返回null
stackOf
Link copied to clipboard
fun <
E
>
stackOf
():
Stack
<
E
>
Content copied to clipboard
创建一个stack示例