public final class BigDecimalValidationRules extends Object
The validation rules specified what boundries will be validated through the validator - types
are:
minDecimalPlaces min count of decimal places
maxDecimalPlaces max count of decimal places
maxFractionalPlaces max count of fractional places
minValue max count of fractional places*
maxValue max count of fractional places*
| Modifier and Type | Class and Description |
|---|---|
static class |
BigDecimalValidationRules.Builder
Builder class to build a
BigDecimalValidationRules object with predefined attributes. |
| Constructor and Description |
|---|
BigDecimalValidationRules(BigDecimalValidationRules.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
long |
getMaxDecimalPlaces() |
long |
getMaxFractionalPlaces() |
BigDecimal |
getMaxValue() |
long |
getMinDecimalPlaces() |
BigDecimal |
getMinValue() |
public BigDecimalValidationRules(BigDecimalValidationRules.Builder builder)
public long getMinDecimalPlaces()
public long getMaxDecimalPlaces()
public long getMaxFractionalPlaces()
public BigDecimal getMinValue()
public BigDecimal getMaxValue()
Copyright © 2015 Contargo GmbH & Co. KG. All rights reserved.