public abstract class DelimiterColumnValueConverter extends Object implements ColumnValueConverter<String,Collection<?>>
| Constructor and Description |
|---|
DelimiterColumnValueConverter() |
| Modifier and Type | Method and Description |
|---|---|
Collection<?> |
deserialize(String value)
Deserializes given value to a different type.
|
protected abstract Collection<?> |
getCollection(Iterable<?> iterable)
Gets the collection that will be used to store the deserialized delimited string.
|
protected abstract String |
getDelimiter()
Gets the string separator.
|
String |
serialize(Collection<?> value)
Serializes given value to a different type.
|
public String serialize(Collection<?> value)
ColumnValueConverterserialize in interface ColumnValueConverter<String,Collection<?>>value - the value to serializepublic Collection<?> deserialize(String value)
ColumnValueConverterdeserialize in interface ColumnValueConverter<String,Collection<?>>value - the value to deserializeprotected abstract String getDelimiter()
protected abstract Collection<?> getCollection(Iterable<?> iterable)
iterable - an iteration over the segments splitCopyright © 2014. All rights reserved.