public class BigDecimalFacetForPropertyFromJavaxValidationDigitsAnnotation extends BigDecimalValueFacetAbstract
FacetAbstract.Derivation, FacetAbstract.Disabling, FacetAbstract.Hiding, FacetAbstract.Validating| Constructor and Description |
|---|
BigDecimalFacetForPropertyFromJavaxValidationDigitsAnnotation(FacetHolder holder,
Integer precision,
Integer scale) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getPrecision()
Maximum length of digits for this decimal (in other words, its precision).
|
Integer |
getScale()
The number of digits to the right of the decimal place (fractional part) for this decimal.
|
static Class<? extends Facet> |
type() |
getLengthalwaysReplace, facetType, getFacetHolder, getIdentified, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet, toString, toStringValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitalwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacetpublic BigDecimalFacetForPropertyFromJavaxValidationDigitsAnnotation(FacetHolder holder, Integer precision, Integer scale)
public Integer getPrecision()
BigDecimalValueFacetFor example:
getPrecision in interface BigDecimalValueFacetgetPrecision in class BigDecimalValueFacetAbstractpublic Integer getScale()
BigDecimalValueFacetFor example:
getScale in interface BigDecimalValueFacetgetScale in class BigDecimalValueFacetAbstractCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.