V
- The type of decimal valuepublic abstract static class NumberConverter.DecimalType<V extends Number> extends NumberConverter<V>
NumberConverter
implementation for
all decimal types.NumberConverter.DecimalType<V extends Number>, NumberConverter.IntegerType<V extends Number>
pattern
Modifier | Constructor and Description |
---|---|
protected |
DecimalType(String pattern)
Constructs a new
NumberConverter.DecimalType with the
specified number pattern. |
Modifier and Type | Method and Description |
---|---|
protected NumberFormat |
getFormat(ValidationContext<?> context)
Returns decimal number format for the specified context and this
converter configuration.
|
appendMessageArguments, doDecode, doDecodeDefault, doEncode, doEncodeDefault
decode, encode
getMessageTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessageTemplate, getType
protected DecimalType(String pattern)
NumberConverter.DecimalType
with the
specified number pattern.pattern
- Decimal number pattern or null
if
context pattern should be used.IllegalArgumentException
- if the specified pattern is invalid.protected NumberFormat getFormat(ValidationContext<?> context)
getFormat
in class NumberConverter<V extends Number>
context
- Validation context.Copyright © 2011–2020 FoxLabs. All rights reserved.