Package nl.vpro.domain.media.update
Class ScheduleUpdate
- java.lang.Object
-
- nl.vpro.domain.media.update.ScheduleUpdate
-
- All Implemented Interfaces:
Iterable<ScheduleEventUpdate>
public class ScheduleUpdate extends Object implements Iterable<ScheduleEventUpdate>
- Since:
- 5.8
- Author:
- Michiel Meeuwissen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScheduleUpdate.Builder
-
Constructor Summary
Constructors Constructor Description ScheduleUpdate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(ScheduleUpdate schedule)
com.google.common.collect.Range<LocalDateTime>
asLocalRange()
com.google.common.collect.Range<Instant>
asRange()
static @NonNull ScheduleUpdate.Builder
builder()
Schedule
fetch(nl.vpro.domain.media.support.OwnerType ownerType)
Channel
getChannel()
String
getNet()
@NonNull SortedSet<ScheduleEventUpdate>
getScheduleEvents()
Instant
getStart()
Instant
getStop()
@NonNull Iterator<ScheduleEventUpdate>
iterator()
void
setChannel(Channel channel)
void
setNet(String net)
void
setStart(Instant start)
void
setStop(Instant stop)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getScheduleEvents
public @NonNull SortedSet<ScheduleEventUpdate> getScheduleEvents()
-
asLocalRange
public com.google.common.collect.Range<LocalDateTime> asLocalRange()
-
asRange
public com.google.common.collect.Range<Instant> asRange()
-
iterator
public @NonNull Iterator<ScheduleEventUpdate> iterator()
- Specified by:
iterator
in interfaceIterable<ScheduleEventUpdate>
-
fetch
public Schedule fetch(nl.vpro.domain.media.support.OwnerType ownerType)
-
add
public void add(ScheduleUpdate schedule)
-
builder
public static @NonNull ScheduleUpdate.Builder builder()
-
getChannel
public Channel getChannel()
-
setChannel
public void setChannel(Channel channel)
-
getNet
public String getNet()
-
setNet
public void setNet(String net)
-
getStart
public Instant getStart()
-
setStart
public void setStart(Instant start)
-
getStop
public Instant getStop()
-
setStop
public void setStop(Instant stop)
-
-