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, tryConvertNumerics
protected 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 DefaultNumericConverter
protected ConvertResult tryConvertFloat(String name, String value)
tryConvertFloat
in class DefaultNumericConverter
protected ConvertResult tryConvertLong(String name, String value)
tryConvertLong
in class DefaultNumericConverter
protected ConvertResult tryConvertInteger(String name, String value)
tryConvertInteger
in class DefaultNumericConverter
protected ConvertResult tryConvertShort(String name, String value)
tryConvertShort
in class DefaultNumericConverter
protected ConvertResult tryConvertByte(String name, String value)
tryConvertByte
in class DefaultNumericConverter
Copyright © 2012–2017. All rights reserved.