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

se.fortnox.reactivewizard.jaxrs.params.deserializing.NumberNotNullDeserializer Maven / Gradle / Ivy

There is a newer version: 24.6.0
Show newest version
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