This site requires javascript.
Android Code Search
file:androidx/collection/LongSparseArray.kt function:contains
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/
LongSparseArray.kt
content_copy
Preview
190:
191:
192:
193:
194:
195:
/** Returns `true` if the specified [key] is mapped. */
public
open
fun
contains
Key(key: Long): Boolean
/** Returns `true` if the specified [value] is mapped from any key. */
public
open
fun
contains
Value(value: E): Boolean
440:
441:
442:
@Suppress(
"NOTHING_TO_INLINE"
)
internal
inline
fun
<E> LongSparseArray<E>.common
Contains
Key(key: Long): Boolean {
return
indexOfKey(key) >=
0
445:
446:
447:
@Suppress(
"NOTHING_TO_INLINE"
)
internal
inline
fun
<E> LongSparseArray<E>.common
Contains
Value(value: E): Boolean {
return
indexOfValue(value) >=
0
512:
513:
514:
@Suppress(
"NOTHING_TO_INLINE"
)
public
inline
operator
fun
<T> LongSparseArray<T>.
contains
(key: Long): Boolean = containsKey(key)
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