Class DefaultClockProvider
- java.lang.Object
-
- org.hibernate.validator.internal.engine.DefaultClockProvider
-
- All Implemented Interfaces:
ClockProvider
public class DefaultClockProvider extends Object implements ClockProvider
A defaultClockProviderimplementation which returns the current system time in the default time zone usingClock.systemDefaultZone().- Author:
- Guillaume Smet
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultClockProviderINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClockgetClock()Returns the clock which serves as the reference fornow.
-
-
-
Field Detail
-
INSTANCE
public static final DefaultClockProvider INSTANCE
-
-
Method Detail
-
getClock
public Clock getClock()
Description copied from interface:ClockProviderReturns the clock which serves as the reference fornow.- Specified by:
getClockin interfaceClockProvider- Returns:
- the clock which serves as the reference for
now; must not benull
-
-