com.github.alexeylapin.m3u8.model.SegmentMap Maven / Gradle / Ivy
The newest version!
package com.github.alexeylapin.m3u8.model;
import org.immutables.value.Value;
import java.util.Optional;
/**
* Segment map (EXT-X-MAP)
*
* @see
* RFC 8216 - 4.3.2.5. EXT-X-MAP
*/
@Value.Immutable
public interface SegmentMap {
String uri();
Optional byteRange();
static Builder builder() {
return new Builder();
}
class Builder extends SegmentMapBuilder {
}
static SegmentMap of(String uri) {
return builder()
.uri(uri)
.build();
}
static SegmentMap of(String uri, ByteRange byteRange) {
return builder()
.uri(uri)
.byteRange(byteRange)
.build();
}
}