se.fortnox.reactivewizard.jaxrs.params.deserializing.NumberNotNullDeserializer Maven / Gradle / Ivy
package se.fortnox.reactivewizard.jaxrs.params.deserializing;
import java.util.function.Function;
/**
* Generic number deserializer, not allowing null.
*/
public class NumberNotNullDeserializer extends NumberDeserializer {
public NumberNotNullDeserializer(Function numberParser, String errorCode) {
super(numberParser, errorCode);
}
@Override
protected T getNullValue() throws DeserializerException {
throw new DeserializerException(errorCode);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy