public class NumberStringConverter extends Object implements AttributeConverter<Number,String>
Number to and from its String representation.
By default, the OGM will automatically convert BigInteger
and BigDecimal entity attributes using this converter.| Constructor and Description |
|---|
NumberStringConverter(Class<? extends Number> numberClass) |
NumberStringConverter(Class<? extends Number> numberClass,
boolean lenient) |
| Modifier and Type | Method and Description |
|---|---|
Number |
toEntityAttribute(String value) |
String |
toGraphProperty(Number value) |
public String toGraphProperty(Number value)
toGraphProperty in interface AttributeConverter<Number,String>public Number toEntityAttribute(String value)
toEntityAttribute in interface AttributeConverter<Number,String>Copyright © 2015–2020 Neo Technology, Inc.. All rights reserved.