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:
java.util.function.DoubleFunction<java.lang.String>
,ParsedDecimal.FormatOptions
- Enclosing class:
- DoubleFormat
private static class DoubleFormat.PlainDoubleFormat extends DoubleFormat.AbstractDoubleFormat
Format class that produces plain decimal strings that do not use scientific notation.
-
-
Constructor Summary
Constructors Constructor Description PlainDoubleFormat(DoubleFormat.Builder builder)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
applyFiniteInternal(ParsedDecimal val)
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 Detail
-
PlainDoubleFormat
PlainDoubleFormat(DoubleFormat.Builder builder)
Constructs a new instance.- Parameters:
builder
- builder instance containing configuration values
-
-
Method Detail
-
applyFiniteInternal
protected java.lang.String applyFiniteInternal(ParsedDecimal val)
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
.
-
-