This site requires javascript.
Android Code Search
file:androidx/compose/ui/util/MathHelpers.kt function:fastCoerceAtLeast
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
compose/ui/ui-util/src/commonMain/kotlin/androidx/compose/ui/util/
MathHelpers.kt
content_copy
Preview
67:
68:
69:
/** Ensures that this value is not less than the specified [minimumValue]. */
inline
fun
Float.
fastCoerceAtLeast
(minimumValue: Float): Float {
return
if
(this < minimumValue) minimumValue
else
this
85:
86:
87:
/** Ensures that this value is not less than the specified [minimumValue]. */
inline
fun
Double.
fastCoerceAtLeast
(minimumValue: Double): Double {
return
if
(this < minimumValue) minimumValue
else
this
103:
104:
105:
/** Ensures that this value is not less than the specified [minimumValue]. */
inline
fun
Int.
fastCoerceAtLeast
(minimumValue: Int): Int {
return
if
(this < minimumValue) minimumValue
else
this
121:
122:
123:
/** Ensures that this value is not less than the specified [minimumValue]. */
inline
fun
Long.
fastCoerceAtLeast
(minimumValue: Long): Long {
return
if
(this < minimumValue) minimumValue
else
this
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