Package org.neo4j.ogm.typeconversion
Class NumberStringConverter
java.lang.Object
org.neo4j.ogm.typeconversion.NumberStringConverter
- All Implemented Interfaces:
AttributeConverter<Number,
String>
The NumberStringConverter can be used to convert any java object that extends
Number
to and from its String representation.
By default, the OGM will automatically convert BigInteger
and BigDecimal
entity attributes using this converter.- Author:
- Vince Bickers, Gerrit Meier, RĂ³bert Papp
-
Constructor Summary
ConstructorDescriptionNumberStringConverter
(Class<? extends Number> numberClass) NumberStringConverter
(Class<? extends Number> numberClass, boolean lenient) -
Method Summary
-
Constructor Details
-
NumberStringConverter
-
NumberStringConverter
-
-
Method Details
-
toGraphProperty
- Specified by:
toGraphProperty
in interfaceAttributeConverter<Number,
String>
-
toEntityAttribute
- Specified by:
toEntityAttribute
in interfaceAttributeConverter<Number,
String>
-