V
- The type of integer valuepublic abstract static class NumberConverter.IntegerType<V extends Number> extends NumberConverter<V>
NumberConverter
implementation for
all integer types.NumberConverter.DecimalType<V extends Number>, NumberConverter.IntegerType<V extends Number>
pattern
Modifier | Constructor and Description |
---|---|
protected |
IntegerType(String pattern)
Constructs a new
NumberConverter.IntegerType with the
specified number pattern. |
Modifier and Type | Method and Description |
---|---|
protected NumberFormat |
getFormat(ValidationContext<?> context)
Returns integer 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 IntegerType(String pattern)
NumberConverter.IntegerType
with the
specified number pattern.pattern
- Integer 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.