public class DefaultClockImpl extends Object implements Clock
| Modifier and Type | Field and Description |
|---|---|
protected static Calendar |
CURRENT_TIME |
| Constructor and Description |
|---|
DefaultClockImpl() |
DefaultClockImpl(TimeZone timeZone) |
| Modifier and Type | Method and Description |
|---|---|
Calendar |
getCurrentCalendar() |
Calendar |
getCurrentCalendar(TimeZone timeZone) |
Date |
getCurrentTime() |
TimeZone |
getCurrentTimeZone() |
void |
reset() |
void |
setCurrentCalendar(Calendar currentTime) |
void |
setCurrentTime(Date currentTime) |
protected static volatile Calendar CURRENT_TIME
public DefaultClockImpl()
public DefaultClockImpl(TimeZone timeZone)
public void setCurrentTime(Date currentTime)
setCurrentTime in interface Clockpublic void setCurrentCalendar(Calendar currentTime)
setCurrentCalendar in interface Clockpublic Date getCurrentTime()
getCurrentTime in interface ClockReaderpublic Calendar getCurrentCalendar()
getCurrentCalendar in interface ClockReaderpublic Calendar getCurrentCalendar(TimeZone timeZone)
getCurrentCalendar in interface ClockReaderpublic TimeZone getCurrentTimeZone()
getCurrentTimeZone in interface ClockReaderCopyright © 2017 Flowable. All rights reserved.