public class FixedTimeFrame extends Object implements TimeFrame
| Constructor and Description |
|---|
FixedTimeFrame(Clock clock,
DateTime startTime,
Period period) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(DateTime dateTime) |
boolean |
equals(Object anotherObject) |
boolean |
hasFinished()
Checks that the current time is in the current time frame.
|
long |
inMillis() |
protected boolean |
inRange(DateTime time) |
long |
millisUntilNextTimeFrame() |
TimeFrame |
next() |
DateTime |
startTime() |
String |
toString() |
public boolean hasFinished()
TimeFramehasFinished in interface TimeFrameprotected boolean inRange(DateTime time)
public long millisUntilNextTimeFrame()
millisUntilNextTimeFrame in interface TimeFramepublic long inMillis()
public TimeFrame next()
public DateTime startTime()
public boolean contains(DateTime dateTime)
Copyright © 2014–2022 MuleSoft, Inc.. All rights reserved.