public static class MasterPlaylist.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
public final MasterPlaylist.Builder from(Playlist instance)
io.lindstrom.m3u8.model.Playlist instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final MasterPlaylist.Builder from(MasterPlaylist instance)
io.lindstrom.m3u8.model.MasterPlaylist instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final MasterPlaylist.Builder addAlternativeRenditions(AlternativeRendition element)
alternativeRenditions list.element - A alternativeRenditions elementthis builder for use in a chained invocationpublic final MasterPlaylist.Builder addAlternativeRenditions(AlternativeRendition... elements)
alternativeRenditions list.elements - An array of alternativeRenditions elementsthis builder for use in a chained invocationpublic final MasterPlaylist.Builder alternativeRenditions(java.lang.Iterable<? extends AlternativeRendition> elements)
alternativeRenditions list.elements - An iterable of alternativeRenditions elementsthis builder for use in a chained invocationpublic final MasterPlaylist.Builder addAllAlternativeRenditions(java.lang.Iterable<? extends AlternativeRendition> elements)
alternativeRenditions list.elements - An iterable of alternativeRenditions elementsthis builder for use in a chained invocationpublic final MasterPlaylist.Builder addVariantStreams(VariantStream element)
variantStreams list.element - A variantStreams elementthis builder for use in a chained invocationpublic final MasterPlaylist.Builder addVariantStreams(VariantStream... elements)
variantStreams list.elements - An array of variantStreams elementsthis builder for use in a chained invocationpublic final MasterPlaylist.Builder variantStreams(java.lang.Iterable<? extends VariantStream> elements)
variantStreams list.elements - An iterable of variantStreams elementsthis builder for use in a chained invocationpublic final MasterPlaylist.Builder addAllVariantStreams(java.lang.Iterable<? extends VariantStream> elements)
variantStreams list.elements - An iterable of variantStreams elementsthis builder for use in a chained invocationpublic final MasterPlaylist.Builder addIFramePlaylists(IFramePlaylist element)
iFramePlaylists list.element - A iFramePlaylists elementthis builder for use in a chained invocationpublic final MasterPlaylist.Builder addIFramePlaylists(IFramePlaylist... elements)
iFramePlaylists list.elements - An array of iFramePlaylists elementsthis builder for use in a chained invocationpublic final MasterPlaylist.Builder iFramePlaylists(java.lang.Iterable<? extends IFramePlaylist> elements)
iFramePlaylists list.elements - An iterable of iFramePlaylists elementsthis builder for use in a chained invocationpublic final MasterPlaylist.Builder addAllIFramePlaylists(java.lang.Iterable<? extends IFramePlaylist> elements)
iFramePlaylists list.elements - An iterable of iFramePlaylists elementsthis builder for use in a chained invocationpublic final MasterPlaylist.Builder version(int version)
version attribute.version - The value for versionthis builder for use in a chained invocationpublic final MasterPlaylist.Builder independentSegments(boolean independentSegments)
independentSegments attribute.
If not set, this attribute will have a default value as returned by the initializer of independentSegments.
independentSegments - The value for independentSegmentsthis builder for use in a chained invocationpublic MasterPlaylist build()
MasterPlaylist.java.lang.IllegalStateException - if any required attributes are missing