This site requires javascript.
Android Code Search
file:androidx/collection/ObjectList.kt function:mutableObjectListOf
search
close
info_outline
more_vert
Result 1 of 1
content_copy
Search Result Root
androidx/platform/frameworks/support
keyboard_arrow_right
Branch
Branch
androidx-main
keyboard_arrow_right
Search Result Path
collection/collection/src/commonMain/kotlin/androidx/collection/
ObjectList.kt
content_copy
Preview
1515:
1516:
1517:
1518:
1519:
1520:
/** @return a new empty [MutableObjectList] with the default capacity. */
public
inline
fun
<E>
mutableObjectListOf
(): MutableObjectList<E> = MutableObjectList()
/** @return a new [MutableObjectList] with [element1] as the only element in the list. */
public
fun
<E>
mutableObjectListOf
(element1: E): MutableObjectList<E> {
val
list = MutableObjectList<E>(
1
)
1525:
1526:
1527:
/** @return a new [MutableObjectList] with 2 elements, [element1] and [element2], in order. */
public
fun
<E>
mutableObjectListOf
(element1: E, element2: E): MutableObjectList<E> {
val
list = MutableObjectList<E>(
2
)
1536:
1537:
1538:
*/
public
fun
<E>
mutableObjectListOf
(element1: E, element2: E, element3: E): MutableObjectList<E> {
val
list = MutableObjectList<E>(
3
)
1545:
1546:
1547:
/** @return a new [MutableObjectList] with the given elements, in order. */
public
inline
fun
<E>
mutableObjectListOf
(
vararg
elements: E): MutableObjectList<E> =
MutableObjectList<E>(elements.size).apply { plusAssign(elements
as
Array<E>) }
chevron_left
1
chevron_right
Results per page
10
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Got it
Help
Open branch androidx-main