Package org.apache.commons.text.numbers
Class DoubleFormat.PlainDoubleFormat
java.lang.Object
org.apache.commons.text.numbers.DoubleFormat.AbstractDoubleFormat
org.apache.commons.text.numbers.DoubleFormat.PlainDoubleFormat
- All Implemented Interfaces:
DoubleFunction<String>
,ParsedDecimal.FormatOptions
- Enclosing class:
DoubleFormat
Format class that produces plain decimal strings that do not use
scientific notation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns a formatted representation of the given rounded decimal value todst
.Methods inherited from class org.apache.commons.text.numbers.DoubleFormat.AbstractDoubleFormat
apply, getDecimalSeparator, getDigits, getExponentSeparatorChars, getGroupingSeparator, getMinusSign, isAlwaysIncludeExponent, isGroupThousands, isIncludeFractionPlaceholder, isSignedZero
-
Constructor Details
-
PlainDoubleFormat
PlainDoubleFormat(DoubleFormat.Builder builder) Constructs a new instance.- Parameters:
builder
- builder instance containing configuration values
-
-
Method Details
-
applyFiniteInternal
Returns a formatted representation of the given rounded decimal value todst
.- Specified by:
applyFiniteInternal
in classDoubleFormat.AbstractDoubleFormat
- Parameters:
val
- value to format- Returns:
- a formatted representation of the given rounded decimal value to
dst
.
-