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);
}
}