Class DefaultClockProvider

java.lang.Object
org.hibernate.validator.internal.engine.DefaultClockProvider
All Implemented Interfaces:
ClockProvider

public class DefaultClockProvider extends Object implements ClockProvider
A default ClockProvider implementation which returns the current system time in the default time zone using Clock.systemDefaultZone().
Author:
Guillaume Smet
  • Field Details

  • Method Details

    • getClock

      public Clock getClock()
      Description copied from interface: ClockProvider
      Returns the clock which serves as the reference for now.
      Specified by:
      getClock in interface ClockProvider
      Returns:
      the clock which serves as the reference for now; must not be null