public class ScheduledPeriod
extends java.lang.Object
ScheduledPeriod.Time
class for start/end time.
Full day range is [0 - 86400) seconds, where 0 equals 0:00:00 and 86399 is 23:59:59Modifier and Type | Class and Description |
---|---|
static class |
ScheduledPeriod.Time
Class for setting time of period start/end.
|
Constructor and Description |
---|
ScheduledPeriod(long startTimeSeconds,
long endTimeSeconds)
Constructs object from given seconds
|
ScheduledPeriod(ScheduledPeriod.Time startTime,
ScheduledPeriod.Time endTime)
Constructs object from given
ScheduledPeriod.Time objects. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
ScheduledPeriod.Time |
getEndTime()
Returns stop time.
|
ScheduledPeriod.Time |
getStartTime()
Returns start time.
|
int |
hashCode() |
byte[] |
toBytes()
Converts schedule period into byte array.
|
java.lang.String |
toString() |
public ScheduledPeriod(long startTimeSeconds, long endTimeSeconds)
startTimeSeconds
- period start time in secondsendTimeSeconds
- period end time in secondspublic ScheduledPeriod(ScheduledPeriod.Time startTime, ScheduledPeriod.Time endTime)
ScheduledPeriod.Time
objects.startTime
- period start timeendTime
- period end timepublic ScheduledPeriod.Time getStartTime()
public ScheduledPeriod.Time getEndTime()
public byte[] toBytes()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object