This site requires javascript.
Android Code Search
file:androidx/collection/OrderedScatterSet.kt function:mutableOrderedScatterSetOf
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/
OrderedScatterSet.kt
content_copy
Preview
73:
74:
75:
/** Returns a new [MutableOrderedScatterSet]. */
public
fun
<E>
mutableOrderedScatterSetOf
(): MutableOrderedScatterSet<E> =
MutableOrderedScatterSet()
77:
78:
79:
/** Returns a new [MutableOrderedScatterSet] with only [element1] in it. */
public
fun
<E>
mutableOrderedScatterSetOf
(element1: E): MutableOrderedScatterSet<E> =
MutableOrderedScatterSet<E>(
1
).apply { plusAssign(element1) }
81:
82:
83:
/** Returns a new [MutableOrderedScatterSet] with only [element1] and [element2] in it. */
public
fun
<E>
mutableOrderedScatterSetOf
(element1: E, element2: E): MutableOrderedScatterSet<E> =
MutableOrderedScatterSet<E>(
2
).apply {
90:
91:
92:
*/
public
fun
<E>
mutableOrderedScatterSetOf
(
element1: E,
102:
103:
104:
/** Returns a new [MutableOrderedScatterSet] with the specified contents. */
public
fun
<E>
mutableOrderedScatterSetOf
(
vararg
elements: E): MutableOrderedScatterSet<E> =
MutableOrderedScatterSet<E>(elements.size).apply { plusAssign(elements) }
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