public class CollectionConverter extends Object
Collection
from and to a String to be persisted/serialized to the database. Collection
may only contain elements of a type that is supported by the ConverterService
.Collection
<-> SerializedCollection
<-> JSON String.
The SerializedCollection
is the Java representation of the JSON object.ConverterService
.Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class<?> type) |
String |
toStringRepresentation(Collection<?> collection) |
Collection<?> |
toValue(Class<Collection<?>> type,
String string) |
public String toStringRepresentation(Collection<?> collection)
public Collection<?> toValue(Class<Collection<?>> type, String string)
public boolean canConvert(Class<?> type)
Copyright © 2021. All rights reserved.