org.nuiton.util.csv
Class Common.ToStringParserFormatter<E>
java.lang.Object
org.nuiton.util.csv.Common.ToStringParserFormatter<E>
- All Implemented Interfaces:
- ValueFormatter<E>, ValueParser<E>, ValueParserFormatter<E>
- Enclosing class:
- Common
public static class Common.ToStringParserFormatter<E>
- extends Object
- implements ValueParserFormatter<E>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toStrings
protected Map<E,String> toStrings
fromString
protected Map<String,E> fromString
Common.ToStringParserFormatter
public Common.ToStringParserFormatter(List<E> values)
Common.ToStringParserFormatter
public Common.ToStringParserFormatter(E[] values)
Common.ToStringParserFormatter
public Common.ToStringParserFormatter(List<E> values,
StringUtil.ToString<E> toString)
computeToStrings
protected void computeToStrings(E[] values,
StringUtil.ToString<E> toString)
- fill toStrings and fromString
computeToStrings
protected void computeToStrings(List<E> values,
StringUtil.ToString<E> toString)
- fill toStrings and fromString
format
public String format(E value)
- Specified by:
format in interface ValueFormatter<E>
parse
public E parse(String valueAsString)
throws ParseException
- Specified by:
parse in interface ValueParser<E>
- Throws:
ParseException
Copyright © 2011-2012 CodeLutin. All Rights Reserved.