Package it.tidalwave.util
Class TimeProvider.DefaultTimeProvider
- java.lang.Object
- 
- it.tidalwave.util.TimeProvider.DefaultTimeProvider
 
- 
- All Implemented Interfaces:
- TimeProvider,- java.util.function.Supplier<java.time.Instant>
 - Enclosing interface:
- TimeProvider
 
 public static class TimeProvider.DefaultTimeProvider extends java.lang.Object implements TimeProvider 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface it.tidalwave.util.TimeProviderTimeProvider.DefaultTimeProvider
 
- 
 - 
Field Summary- 
Fields inherited from interface it.tidalwave.util.TimeProvider__INSTANCE
 
- 
 - 
Constructor SummaryConstructors Constructor Description DefaultTimeProvider()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.InstantcurrentInstant()Returns the current time.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface it.tidalwave.util.TimeProvidercurrentLocalDateTime, currentZonedDateTime, get
 
- 
 
- 
- 
- 
Method Detail- 
currentInstant@Nonnull public java.time.Instant currentInstant() Description copied from interface:TimeProviderReturns the current time.- Specified by:
- currentInstantin interface- TimeProvider
- Returns:
- the current time as an Instant
 
 
- 
 
-