public class DefaultClockProvider extends Object implements ClockProvider
ClockProvider implementation which returns the current system time in the default time zone using
Clock.systemDefaultZone().| Modifier and Type | Field and Description |
|---|---|
static DefaultClockProvider |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Clock |
getClock()
Returns the clock which serves as the reference for
now. |
public static final DefaultClockProvider INSTANCE
public Clock getClock()
ClockProvidernow.getClock in interface ClockProvidernow; must not be
nullCopyright © 2019 JBoss by Red Hat. All rights reserved.