public abstract class BigDecimalValueFacetAbstract extends FacetAbstract implements BigDecimalValueFacet
FacetAbstract.Derivation, FacetAbstract.Disabling, FacetAbstract.Hiding, FacetAbstract.Validating| Constructor and Description |
|---|
BigDecimalValueFacetAbstract(Class<? extends Facet> facetType,
FacetHolder holder,
FacetAbstract.Derivation derivation) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getLength()
Same as
BigDecimalValueFacet.getPrecision(). |
abstract Integer |
getPrecision()
Maximum length of digits for this decimal (in other words, its precision).
|
abstract Integer |
getScale()
The number of digits to the right of the decimal place (fractional part) for this decimal.
|
alwaysReplace, 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 BigDecimalValueFacetAbstract(Class<? extends Facet> facetType, FacetHolder holder, FacetAbstract.Derivation derivation)
public abstract Integer getPrecision()
BigDecimalValueFacetFor example:
getPrecision in interface BigDecimalValueFacetpublic final Integer getLength()
BigDecimalValueFacetBigDecimalValueFacet.getPrecision().getLength in interface BigDecimalValueFacetpublic abstract Integer getScale()
BigDecimalValueFacetFor example:
getScale in interface BigDecimalValueFacetCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.