Package dev.enola.common.time
Class InstantSourceTLC
java.lang.Object
dev.enola.common.time.InstantSourceTLC
- All Implemented Interfaces:
InstantSource
InstantSourceTLC is an
InstantSource which checks if there is an InstantSource
available in the TLC, and otherwise uses the InstantSource.system().
Use this as InstanceSource so that tests can set a fixed Instant.
-
Constructor Details
-
InstantSourceTLC
public InstantSourceTLC()
-
-
Method Details
-
instant
- Specified by:
instantin interfaceInstantSource
-