eu.dozd.mongo.codecs.bigdecimal.BigDecimalCodecProvider Maven / Gradle / Ivy
package eu.dozd.mongo.codecs.bigdecimal;
import org.bson.codecs.Codec;
import org.bson.codecs.configuration.CodecProvider;
import org.bson.codecs.configuration.CodecRegistry;
import java.math.BigDecimal;
public class BigDecimalCodecProvider implements CodecProvider {
@Override
public Codec get(Class clazz, CodecRegistry codecRegistry) {
if (clazz == BigDecimal.class) {
return (Codec) new BigDecimalCodec();
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy