Toolbox
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Toolbox
core
/
com.michaelflisar.toolbox.numbers
/
MyNumberParser
My
Number
Parser
class
MyNumberParser
<
T
:
Number
>
(
val
parse
:
(
value
:
String
)
->
T
?
,
val
correct
:
(
value
:
T
)
->
T
,
val
format
:
(
value
:
T
)
->
String
?
,
val
getPrevValue
:
(
value
:
T
)
->
T
,
val
getNextValue
:
(
value
:
T
)
->
T
)
Members
Constructors
My
Number
Parser
Link copied to clipboard
constructor
(
parse
:
(
value
:
String
)
->
T
?
,
correct
:
(
value
:
T
)
->
T
,
format
:
(
value
:
T
)
->
String
?
,
getPrevValue
:
(
value
:
T
)
->
T
,
getNextValue
:
(
value
:
T
)
->
T
)
Properties
correct
Link copied to clipboard
val
correct
:
(
value
:
T
)
->
T
format
Link copied to clipboard
val
format
:
(
value
:
T
)
->
String
?
get
Next
Value
Link copied to clipboard
val
getNextValue
:
(
value
:
T
)
->
T
get
Prev
Value
Link copied to clipboard
val
getPrevValue
:
(
value
:
T
)
->
T
parse
Link copied to clipboard
val
parse
:
(
value
:
String
)
->
T
?
Functions
format
Value
Link copied to clipboard
fun
formatValue
(
value
:
T
)
:
String