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

io.castled.schema.models.DecimalSchema Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package io.castled.schema.models;

import com.google.common.collect.Lists;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Getter
@Setter
public class DecimalSchema extends Schema {

    private int scale;
    private int precision;

    @Builder
    public DecimalSchema(int scale, int precision, boolean optional) {
        super(SchemaType.DECIMAL, Lists.newArrayList(BigDecimal.class), optional);
        this.scale = scale;
        this.precision = precision;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy