Class Common.ListValueParser<E>
- All Implemented Interfaces:
ValueFormatter<List<E>>, ValueParser<List<E>>, ValueParserFormatter<List<E>>
- Enclosing class:
Common
Be able to deal with a list value.
The value could be a list of anything, we just need to know how to split
values and how to convert/write them.
On each value, we use given
ValueParserFormatter to deal it.- Since:
- 2.4
- Author:
- Brendan Le Ny - leny@codelutin.com, Tony Chemit - chemit@codelutin.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.google.common.base.Joinerprotected com.google.common.base.Splitterprotected ValueParserFormatter<E> Fields inherited from class Common.NullableParserFormatter
defaultValue, nullAllowed -
Constructor Summary
ConstructorsConstructorDescriptionListValueParser(char separator, ValueParserFormatter<E> valueParserFormatter, List<E> defaultValue, boolean nullAllowed) -
Method Summary
Methods inherited from class Common.NullableParserFormatter
parse
-
Field Details
-
valueParserFormater
-
splitter
protected com.google.common.base.Splitter splitter -
joiner
protected com.google.common.base.Joiner joiner
-
-
Constructor Details
-
ListValueParser
public ListValueParser(char separator, ValueParserFormatter<E> valueParserFormatter, List<E> defaultValue, boolean nullAllowed)
-
-
Method Details
-
parseNoneEmptyValue
- Specified by:
parseNoneEmptyValuein classCommon.NullableParserFormatter<List<E>>- Throws:
ParseException
-
format
-