Class Common.ToStringParserFormatter<E>

java.lang.Object
org.nuiton.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>
Since:
2.4
Author:
Brendan Le Ny - leny@codelutin.com, Tony Chemit - chemit@codelutin.com
  • Field Details

  • Constructor Details

    • ToStringParserFormatter

      public ToStringParserFormatter(List<E> values)
    • ToStringParserFormatter

      public ToStringParserFormatter(E[] values)
    • ToStringParserFormatter

      public ToStringParserFormatter(List<E> values, org.nuiton.util.StringUtil.ToString<E> toString)
  • Method Details

    • computeToStrings

      protected void computeToStrings(E[] values, org.nuiton.util.StringUtil.ToString<E> toString)
      fill toStrings and fromString
    • computeToStrings

      protected void computeToStrings(List<E> values, org.nuiton.util.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