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

org.zodiac.netty.http.headers.ContentRangeHeader Maven / Gradle / Ivy

package org.zodiac.netty.http.headers;

import java.util.Objects;

final class ContentRangeHeader extends AbstractHeader {

    ContentRangeHeader(CharSequence name) {
        super(BoundedRangeNetty.class, name);
    }

    @Override
    public CharSequence toCharSequence(BoundedRangeNetty value) {
        Objects.requireNonNull(value, "value");
        return value.toCharSequence();
    }

    @Override
    public BoundedRangeNetty toValue(CharSequence value) {
        return new BoundedRangeNetty(value);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy