org.zodiac.netty.http.headers.LongHeader Maven / Gradle / Ivy
The newest version!
package org.zodiac.netty.http.headers;
import org.zodiac.sdk.toolkit.util.lang.NumUtil;
class LongHeader extends AbstractHeader {
LongHeader(CharSequence name) {
super(Long.TYPE, name);
}
@Override
public String toString(Long value) {
return value.toString();
}
@Override
public Long toValue(CharSequence value) {
return NumUtil.parseLong(value);
}
}