io.fastjson.bnsf.holders.basic.VarIntHolder Maven / Gradle / Ivy
package io.fastjson.bnsf.holders.basic;
import io.fastjson.bnsf.WireValueType;
import io.fastjson.bnsf.holders.WireValueHolder;
import java.math.BigInteger;
public class VarIntHolder extends Number implements WireValueHolder {
private BigInteger value;
public BigInteger getValue() {
return value;
}
public void setValue(BigInteger value) {
this.value = value;
}
@Override
public WireValueType type() {
return WireValueType.VAR_INT;
}
@Override
public int intValue() {
return value.intValue();
}
@Override
public long longValue() {
return value.longValue();
}
@Override
public float floatValue() {
return value.floatValue();
}
@Override
public double doubleValue() {
return value.doubleValue();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy