Package it.tidalwave.util.spi
Class DefaultInstantProvider
- java.lang.Object
-
- it.tidalwave.util.spi.DefaultInstantProvider
-
- All Implemented Interfaces:
InstantProvider,Supplier<Instant>
public class DefaultInstantProvider extends Object implements InstantProvider
A default implementation ofInstantProviderwhich returnsInstant.now().- Since:
- 1.39
- Author:
- Fabrizio Giudici
- See Also:
InstantProvider,MockInstantProvider
-
-
Constructor Summary
Constructors Constructor Description DefaultInstantProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantgetInstant()-
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.InstantProvider
get
-
-
-
-
Method Detail
-
getInstant
@Nonnull public Instant getInstant()
- Specified by:
getInstantin interfaceInstantProvider
-
-