Package it.tidalwave.util
Class TimeProvider.DefaultTimeProvider
java.lang.Object
it.tidalwave.util.TimeProvider.DefaultTimeProvider
- All Implemented Interfaces:
TimeProvider
,Supplier<Instant>
- Enclosing interface:
TimeProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface it.tidalwave.util.TimeProvider
TimeProvider.DefaultTimeProvider
-
Field Summary
Fields inherited from interface it.tidalwave.util.TimeProvider
__INSTANCE
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface it.tidalwave.util.TimeProvider
currentLocalDateTime, currentZonedDateTime, get
-
Constructor Details
-
DefaultTimeProvider
public DefaultTimeProvider()
-
-
Method Details
-
currentInstant
Description copied from interface:TimeProvider
Returns the current time.- Specified by:
currentInstant
in interfaceTimeProvider
- Returns:
- the current time as an
Instant
-