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 PositiveIntegerexperimental type, in the org.kotools.types package of the types subproject, for representing an integer that is greater than zero, with the following Application Programming Interface (API):
π Description
We want to introduce the
PositiveInteger
experimental type, in theorg.kotools.types
package of thetypes
subproject, for representing an integer that is greater than zero, with the following Application Programming Interface (API):This type should be available for all Kotlin platforms and Java.
The pattern used for validating inputs should be:
^\+?[1-9]\d*$
.Here's the explanation associated to each symbol used in this pattern:
^
Beginning. Matches the beginning of the string, or the beginning of a line if the multiline flag (m) is enabled.\+
Escaped character. Matches a "+" character (char code 43).?
Quantifier. Match between 0 and 1 of the preceding token.[]
Character set. Matches any character in the set.1-9
Range. Matches a character in the range "1" to "9" (char code 49 to 57). Case sensitive.\d
Digit. Matches any digit character (0-9).*
Quantifier. Match 0 or more of the preceding token.$
End. Matches the end of the string, or the end of a line if the multiline flag (m) is enabled.β Checklist
PATTERN
property with tests, documentation and samples.orThrow(Any)
function with tests, documentation and samples.orNull(Any)
function with tests, documentation and samples.random()
function with tests, documentation and samples.equals(Any?)
andhashCode()
functions) with tests, documentation and samples.toString()
function with tests, documentation and samples.The text was updated successfully, but these errors were encountered: