Package nl.vpro.domain.media.update
Class PredictionUpdate
java.lang.Object
nl.vpro.domain.media.update.PredictionUpdate
- All Implemented Interfaces:
Comparable<PredictionUpdate>
The update representation of a planned prediction.
- Since:
- 5.6
- Author:
- Michiel Meeuwissen
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected Encryption
protected @NotNull Platform
protected Instant
protected Instant
-
Constructor Summary
ConstructorDescriptionPredictionUpdate
(Instant publishStart, Instant publishStop, Platform platform, Encryption encryption) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull PredictionUpdate.Builder
builder()
static PredictionUpdate.Builder
builderOf
(Prediction prediction) protected boolean
int
boolean
int
hashCode()
static PredictionUpdate
of
(Prediction prediction) void
setEncryption
(Encryption encryption) void
setPlatform
(Platform platform) void
setPublishStart
(Instant publishStart) void
setPublishStop
(Instant publishStop) toPrediction
(Prediction prediction) Copies the values of this prediction update to the given prediction (and returns it)@NonNull String
toString()
-
Field Details
-
publishStart
-
publishStop
-
platform
-
encryption
-
-
Constructor Details
-
PredictionUpdate
public PredictionUpdate() -
PredictionUpdate
public PredictionUpdate(Instant publishStart, Instant publishStop, Platform platform, Encryption encryption)
-
-
Method Details
-
of
-
builderOf
-
toPrediction
Copies the values of this prediction update to the given prediction (and returns it)This implies that
Prediction.setPlannedAvailability(boolean)
is set to true. becausePredictionUpdate
only represents planned availabilities.- Returns:
- the given prediction (after changes were applied)
-
toPrediction
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PredictionUpdate>
-
builder
-
getPublishStart
-
getPublishStop
-
getPlatform
-
getEncryption
-
setPublishStart
-
setPublishStop
-
setPlatform
-
setEncryption
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-