utils
0.20.9
common
utils
/
it.unibo.tuprolog.utils.impl
/
CachedImpl
Cached
Impl
common
data
class
CachedImpl
<
T
>
(
generator
:
(
)
->
T
)
:
Cached
<
T
>
Content copied to clipboard
Constructors
Functions
Properties
Constructors
Cached
Impl
Link copied to clipboard
common
fun
<
T
>
CachedImpl
(
generator
:
(
)
->
T
)
Content copied to clipboard
Functions
if
Valid
Link copied to clipboard
common
open
fun
<
R
>
ifValid
(
consumer
:
(
T
)
->
R
)
:
Optional
<
out
R
>
Content copied to clipboard
invalidate
Link copied to clipboard
common
open
override
fun
invalidate
(
)
Content copied to clipboard
regenerate
Link copied to clipboard
common
open
override
fun
regenerate
(
)
Content copied to clipboard
regenerating
Link copied to clipboard
common
open
fun
<
R
>
regenerating
(
consumer
:
(
T
)
->
R
)
:
R
Content copied to clipboard
Properties
isInvalid
Link copied to clipboard
common
open
override
val
isInvalid
:
Boolean
Content copied to clipboard
isValid
Link copied to clipboard
common
open
override
val
isValid
:
Boolean
Content copied to clipboard
value
Link copied to clipboard
common
open
override
val
value
:
T
Content copied to clipboard