public class LongDatatype extends NumberDatatype implements Datatype<java.lang.Long>
Modifier and Type | Field and Description |
---|---|
protected FormatStringsRegistry |
formatStringsRegistry |
decimalSeparator, formatPattern, groupingSeparator
Constructor and Description |
---|
LongDatatype() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.lang.Object value)
Converts value to String.
|
java.lang.String |
format(java.lang.Object value,
java.util.Locale locale)
Converts value to String taking into account local formats.
|
protected boolean |
hasValidLongRange(java.lang.Number result) |
java.lang.Long |
parse(java.lang.String value)
Parses value from String
|
java.lang.Long |
parse(java.lang.String value,
java.util.Locale locale)
Parses value from String taking into account local formats
|
protected java.lang.Number |
parse(java.lang.String value,
java.text.NumberFormat format) |
java.lang.String |
toString() |
createFormat, getParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, getJavaClass
@Autowired protected FormatStringsRegistry formatStringsRegistry
public java.lang.String format(java.lang.Object value)
Datatype
public java.lang.String format(java.lang.Object value, java.util.Locale locale)
Datatype
public java.lang.Long parse(java.lang.String value) throws java.text.ParseException
Datatype
public java.lang.Long parse(java.lang.String value, java.util.Locale locale) throws java.text.ParseException
Datatype
protected java.lang.Number parse(java.lang.String value, java.text.NumberFormat format) throws java.text.ParseException
parse
in class NumberDatatype
java.text.ParseException
protected boolean hasValidLongRange(java.lang.Number result) throws java.text.ParseException
java.text.ParseException
public java.lang.String toString()
toString
in class java.lang.Object