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