All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.alexeylapin.m3u8.model.PreloadHint Maven / Gradle / Ivy

The newest version!
package com.github.alexeylapin.m3u8.model;

import org.immutables.value.Value;

import java.util.Optional;

@Value.Immutable
public interface PreloadHint {
    PreloadHintType type();

    String uri();

    Optional byteRangeStart();

    Optional byteRangeLength();

    static Builder builder() {
        return new Builder();
    }

    class Builder extends PreloadHintBuilder {

    }

    static PreloadHint of(PreloadHintType type, String uri) {
        return builder().type(type).uri(uri).build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy