public abstract class ComplexNumericTypeConverter extends DefaultNumericConverter
1234suffix where suffix denotes some multiplier. For example
1234k might treat k as a multiplier of 1000. Derived
implementations should be created to provide the set of supported suffixes
and their multipliers.| Constructor and Description |
|---|
ComplexNumericTypeConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected Double |
getDouble(NumericCandidate candidate) |
protected Float |
getFloat(NumericCandidate candidate) |
protected Long |
getLong(NumericCandidate candidate) |
protected long |
getMultiplier(NumericCandidate candidate) |
protected int |
getRadix(NumericCandidate candidate) |
protected NumericCandidate |
parse(String value) |
protected ConvertResult |
tryConvertByte(String name,
String value) |
protected ConvertResult |
tryConvertDouble(String name,
String value) |
protected ConvertResult |
tryConvertFloat(String name,
String value) |
protected ConvertResult |
tryConvertInteger(String name,
String value) |
protected ConvertResult |
tryConvertLong(String name,
String value) |
protected ConvertResult |
tryConvertShort(String name,
String value) |
getTypeConverter, getTypeConverter, tryConvertNumericsprotected NumericCandidate parse(String value)
protected Long getLong(NumericCandidate candidate)
protected Double getDouble(NumericCandidate candidate)
protected Float getFloat(NumericCandidate candidate)
protected long getMultiplier(NumericCandidate candidate)
protected int getRadix(NumericCandidate candidate)
protected ConvertResult tryConvertDouble(String name, String value)
tryConvertDouble in class DefaultNumericConverterprotected ConvertResult tryConvertFloat(String name, String value)
tryConvertFloat in class DefaultNumericConverterprotected ConvertResult tryConvertLong(String name, String value)
tryConvertLong in class DefaultNumericConverterprotected ConvertResult tryConvertInteger(String name, String value)
tryConvertInteger in class DefaultNumericConverterprotected ConvertResult tryConvertShort(String name, String value)
tryConvertShort in class DefaultNumericConverterprotected ConvertResult tryConvertByte(String name, String value)
tryConvertByte in class DefaultNumericConverterCopyright © 2012–2022. All rights reserved.