Package org.neo4j.ogm.typeconversion
Class NumberArrayStringConverter
java.lang.Object
org.neo4j.ogm.typeconversion.NumberArrayStringConverter
- All Implemented Interfaces:
AttributeConverter<Number[],
String[]>
public class NumberArrayStringConverter
extends Object
implements AttributeConverter<Number[],String[]>
The NumberStringConverter can be used to convert any java object array containing values that extend
Number
to and from its String array representation.
By default, the OGM will automatically convert arrays of BigInteger
and BigDecimal
entity attributes using this converter.- Author:
- Luanne Misquitta, RĂ³bert Papp
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionNumber[]
toEntityAttribute
(String[] stringValues) String[]
toGraphProperty
(Number[] value)
-
Constructor Details
-
NumberArrayStringConverter
-
-
Method Details
-
toGraphProperty
- Specified by:
toGraphProperty
in interfaceAttributeConverter<Number[],
String[]>
-
toEntityAttribute
- Specified by:
toEntityAttribute
in interfaceAttributeConverter<Number[],
String[]>
-