net.named_data.jndn.encrypt
public class Schedule extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Schedule.Result |
Constructor and Description |
---|
Schedule()
Create a Schedule with empty whiteIntervalList and blackIntervalList.
|
Schedule(Schedule schedule)
Create a Schedule, copying values from the given schedule.
|
Modifier and Type | Method and Description |
---|---|
Schedule |
addBlackInterval(RepetitiveInterval repetitiveInterval)
Add the repetitiveInterval to the blackIntervalList.
|
Schedule |
addWhiteInterval(RepetitiveInterval repetitiveInterval)
Add the repetitiveInterval to the whiteIntervalList.
|
static double |
fromIsoString(String dateString) |
Schedule.Result |
getCoveringInterval(double timeStamp)
Get the interval that covers the time stamp.
|
static String |
toIsoString(double msSince1970) |
void |
wireDecode(Blob input)
Decode the input and update this Schedule object.
|
void |
wireDecode(ByteBuffer input)
Decode the input and update this Schedule object.
|
Blob |
wireEncode()
Encode this Schedule.
|
public Schedule()
public Schedule(Schedule schedule)
schedule
- The Schedule to copy values from.public final Schedule addWhiteInterval(RepetitiveInterval repetitiveInterval)
repetitiveInterval
- The RepetitiveInterval to add. If the list
already contains the same RepetitiveInterval, this does nothing.public final Schedule addBlackInterval(RepetitiveInterval repetitiveInterval)
repetitiveInterval
- The RepetitiveInterval to add. If the list
already contains the same RepetitiveInterval, this does nothing.public final Schedule.Result getCoveringInterval(double timeStamp)
timeStamp
- The time stamp as milliseconds since Jan 1, 1970 UTC.public final Blob wireEncode()
public final void wireDecode(ByteBuffer input) throws EncodingException
input
- The input buffer to decode. This reads from position() to
limit(), but does not change the position.EncodingException
- For invalid encoding.public final void wireDecode(Blob input) throws EncodingException
input
- The input buffer to decode. This reads from position() to
limit(), but does not change the position.EncodingException
- For invalid encoding.public static double fromIsoString(String dateString) throws EncodingException
EncodingException
public static String toIsoString(double msSince1970)
Copyright © 2016. All rights reserved.