Package nl.vpro.domain.media.update
Class PredictionUpdate
java.lang.Object
nl.vpro.domain.media.update.PredictionUpdate
- All Implemented Interfaces:
Comparable<PredictionUpdate>
,Embargo
,MutableEmbargo
public class PredictionUpdate
extends Object
implements Comparable<PredictionUpdate>, MutableEmbargo
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
A very common case is to provide internetvod.static PredictionUpdate
of
(Prediction prediction) void
setEncryption
(Encryption encryption) void
setPlatform
(Platform platform) void
setPublishStart
(Instant publishStart) @NonNull PredictionUpdate
setPublishStartInstant
(@Nullable Instant publishStart) void
setPublishStop
(Instant publishStop) @NonNull PredictionUpdate
setPublishStopInstant
(@Nullable Instant publishStop) toPrediction
(Prediction prediction) Copies the values of this prediction update to the given prediction (and returns it)@NonNull String
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface nl.vpro.domain.Embargo
asRange, inPublicationWindow, inPublicationWindow, isConsiderableForPublication, isPublishable, isUnderEmbargo, isUnderEmbargo, wasUnderEmbargo, wasUnderEmbargo, willBePublished, willBePublished, willBeUnderEmbargo, willBeUnderEmbargo
Methods inherited from interface nl.vpro.domain.MutableEmbargo
set
-
Field Details
-
publishStart
-
publishStop
-
platform
-
encryption
-
-
Constructor Details
-
PredictionUpdate
public PredictionUpdate() -
PredictionUpdate
public PredictionUpdate(Instant publishStart, Instant publishStop, Platform platform, Encryption encryption)
-
-
Method Details
-
internetvod
A very common case is to provide internetvod.- Since:
- 7.10
-
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>
-
getPublishStartInstant
- Specified by:
getPublishStartInstant
in interfaceEmbargo
-
getPublishStopInstant
- Specified by:
getPublishStopInstant
in interfaceEmbargo
-
setPublishStartInstant
- Specified by:
setPublishStartInstant
in interfaceMutableEmbargo
-
setPublishStopInstant
- Specified by:
setPublishStopInstant
in interfaceMutableEmbargo
-
builder
-
getPublishStart
-
getPublishStop
-
getPlatform
-
getEncryption
-
setPublishStart
-
setPublishStop
-
setPlatform
-
setEncryption
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-