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()
ClockProvider
now
.getClock
in interface ClockProvider
now
; must not be
null
Copyright © 2021 JBoss by Red Hat. All rights reserved.