toggle menu
lib
common
switch theme
search in API
mockzilla-management-ui
/
com.apadmi.mockzilla.desktop.utils
/
DataWithTimestamp
Data
With
Timestamp
data
class
DataWithTimestamp
<
T
>
(
val
data
:
T
,
val
timeStamp
:
Long
=
System.currentTimeMillis()
)
Members
Constructors
Data
With
Timestamp
Link copied to clipboard
constructor
(
data
:
T
,
timeStamp
:
Long
=
System.currentTimeMillis()
)
Properties
data
Link copied to clipboard
val
data
:
T
time
Stamp
Link copied to clipboard
val
timeStamp
:
Long
Functions
is
Expired
Link copied to clipboard
fun
isExpired
(
cacheLife
:
Duration
,
currentTimeStamp
:
Long
=
System.currentTimeMillis()
)
:
Boolean