toggle menu
Litho
androidJvm
switch theme
search in API
litho-core
/
com.facebook.litho
/
CollectionsUtils
Collections
Utils
object
CollectionsUtils
Provides util methods for common collection patterns.
Members
Functions
is
Empty
Link copied to clipboard
@
JvmStatic
fun
isEmpty
(
sparseArray
:
SparseArray
<
*
>
?
)
:
Boolean
@
JvmStatic
fun
isEmpty
(
sparseArrayCompat
:
SparseArrayCompat
<
*
>
?
)
:
Boolean
@
JvmStatic
fun
isEmpty
(
collection
:
Collection
<
*
>
?
)
:
Boolean
@
JvmStatic
fun
isEmpty
(
map
:
Map
<
*
,
*
>
?
)
:
Boolean
is
Not
Null
Or
Empty
Link copied to clipboard
@
JvmStatic
fun
isNotNullOrEmpty
(
sparseArray
:
SparseArray
<
*
>
?
)
:
Boolean
@
JvmStatic
fun
isNotNullOrEmpty
(
sparseArrayCompat
:
SparseArrayCompat
<
*
>
?
)
:
Boolean
@
JvmStatic
fun
isNotNullOrEmpty
(
collection
:
Collection
<
*
>
?
)
:
Boolean
@
JvmStatic
fun
isNotNullOrEmpty
(
map
:
Map
<
*
,
*
>
?
)
:
Boolean
is
Null
Or
Empty
Link copied to clipboard
@
JvmStatic
fun
isNullOrEmpty
(
sparseArray
:
SparseArray
<
*
>
?
)
:
Boolean
@
JvmStatic
fun
isNullOrEmpty
(
sparseArrayCompat
:
SparseArrayCompat
<
*
>
?
)
:
Boolean
@
JvmStatic
fun
isNullOrEmpty
(
collection
:
Collection
<
*
>
?
)
:
Boolean
@
JvmStatic
fun
isNullOrEmpty
(
map
:
Map
<
*
,
*
>
?
)
:
Boolean
merge
Sparse
Arrays
Link copied to clipboard
fun
mergeSparseArrays
(
array1
:
SparseArray
<
Any
>
?
,
array2
:
SparseArray
<
Any
>
?
)
:
SparseArray
<
Any
>