You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to introduce the orNull and the orThrowexperimental factory functions in the StrictlyPositiveInt.Companion type, for creating an instance of StrictlyPositiveInt from the specified number of type Byte, Short, Int, Long, Float or Double.
These factory functions should be available for all platforms, except for the orNull function that shouldn't be accessible from Java, due to its non-explicit support for nullable types.
A better alternative of the StrictlyPositiveInt type will be added in the org.kotools.types package (#661), so it is not necessary to add declarations to this type.
π Description
We want to introduce the
orNull
and theorThrow
experimental factory functions in theStrictlyPositiveInt.Companion
type, for creating an instance ofStrictlyPositiveInt
from the specified number of typeByte
,Short
,Int
,Long
,Float
orDouble
.These factory functions should be available for all platforms, except for the
orNull
function that shouldn't be accessible from Java, due to its non-explicit support for nullable types.β Checklist
orThrow(Byte)
function for Kotlin and Java with tests, documentation and samples.orNull(Byte)
function for Kotlin with tests, documentation and samples.orThrow(Short)
function for Kotlin and Java with tests, documentation and samples.orNull(Short)
function for Kotlin with tests, documentation and samples.orThrow(Int)
function for Kotlin and Java with tests, documentation and samples.orNull(Int)
function for Kotlin with tests, documentation and samples.orThrow(Long)
function for Kotlin and Java with tests, documentation and samples.orNull(Long)
function for Kotlin with tests, documentation and samples.orThrow(Float)
function for Kotlin and Java with tests, documentation and samples.orNull(Float)
function for Kotlin with tests, documentation and samples.orThrow(Double)
function for Kotlin and Java with tests, documentation and samples.orNull(Double)
function for Kotlin with tests, documentation and samples.The text was updated successfully, but these errors were encountered: