TimeProvider

fun interface TimeProvider<T : Temporal>

Interface providing access to current time via now method.

This class is needed in order to test methods that require usage of current time stamp.

Functions

Link copied to clipboard
abstract fun now(): T

Returns value representing current time stamp as defined in the implementation of T.

Inheritors

Link copied to clipboard
Link copied to clipboard

Sources

Link copied to clipboard