kotlin-utils
Module Contents
alltypes
Module Contents
java.util.Timer
Module Contents
fun
<
T
:
Serializable
>
Timer
.
startFileStoreRefresher
(
pauseDuration
:
Duration
=
Duration.ofHours(1)
,
stopCondition
:
(
)
->
Boolean
=
{ false }
,
func
:
(
)
->
T
)
:
TimerTask
fun
Timer
.
startJobThread
(
pauseDuration
:
Duration
,
stopCondition
:
(
)
->
Boolean
=
{ false }
,
func
:
(
)
->
Unit
)
:
TimerTask
kotlin.collections.Iterable
Module Contents
fun
<
T
,
R
>
Iterable
<
T
>
.
cartesianProduct
(
other
:
Iterable
<
R
>
)
:
List
<
Pair
<
T
,
R
>
>
fun
<
T
>
Iterable
<
T
>
?
.
equals
(
other
:
Iterable
<
T
>
?
,
preserveOrder
:
Boolean
=
true
)
:
Boolean
fun
<
T
,
R
>
Iterable
<
T
>
.
mapParallel
(
transform
:
suspend
(
T
)
->
R
)
:
List
<
R
>
kotlin.Double
Module Contents
fun
Double
.
round
(
digits
:
Int
,
roundingMode
:
RoundingMode
=
RoundingMode.HALF_EVEN
)
:
Double
class
TimedFileCache
Module Contents
TimedFileCache
(
location
:
String
=
"store"
,
duration
:
Duration
=
Duration.ofHours(1)
,
logger
:
(
String
)
->
Unit
=
{}
)
fun
<
T
:
Serializable
>
getResult
(
name
:
String
,
alternativeFunction
:
(
)
->
T
)
:
T
package
com.github.mckernant1.collections
Module Contents
kotlin.collections.Iterable
Module Contents
fun
<
T
,
R
>
Iterable
<
T
>
.
cartesianProduct
(
other
:
Iterable
<
R
>
)
:
List
<
Pair
<
T
,
R
>
>
fun
<
T
>
Iterable
<
T
>
?
.
equals
(
other
:
Iterable
<
T
>
?
,
preserveOrder
:
Boolean
=
true
)
:
Boolean
fun
<
T
,
R
>
Iterable
<
T
>
.
mapParallel
(
transform
:
suspend
(
T
)
->
R
)
:
List
<
R
>
package
com.github.mckernant1.fs
Module Contents
java.util.Timer
Module Contents
fun
<
T
:
Serializable
>
Timer
.
startFileStoreRefresher
(
pauseDuration
:
Duration
=
Duration.ofHours(1)
,
stopCondition
:
(
)
->
Boolean
=
{ false }
,
func
:
(
)
->
T
)
:
TimerTask
fun
Timer
.
startJobThread
(
pauseDuration
:
Duration
,
stopCondition
:
(
)
->
Boolean
=
{ false }
,
func
:
(
)
->
Unit
)
:
TimerTask
class
TimedFileCache
Module Contents
TimedFileCache
(
location
:
String
=
"store"
,
duration
:
Duration
=
Duration.ofHours(1)
,
logger
:
(
String
)
->
Unit
=
{}
)
fun
<
T
:
Serializable
>
getResult
(
name
:
String
,
alternativeFunction
:
(
)
->
T
)
:
T
package
com.github.mckernant1.math
Module Contents
kotlin.Double
Module Contents
fun
Double
.
round
(
digits
:
Int
,
roundingMode
:
RoundingMode
=
RoundingMode.HALF_EVEN
)
:
Double