Package org.apache.batchee.csv.mapper

## Class DefaultMapper<T>

- java.lang.Object
- - org.apache.batchee.csv.mapper.DefaultMapper<T>

- All Implemented Interfaces:
    `CsvReaderMapper<T>`, `CsvWriterMapper<T>`

      public class DefaultMapper<T>
      extends Object
      implements CsvReaderMapper<T>, CsvWriterMapper<T>

- - ### Constructor Summary

    Constructors
    Modifier | Constructor | Description
    --- | --- | ---
    `` | `DefaultMapper​(Class<T> type)` |
    `protected` | `DefaultMapper​(Class<T> type, CoercingConverter coercingConverter)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `T` | `fromRecord​(org.apache.commons.csv.CSVRecord record)` |
    `Iterable<String>` | `getHeaders()` |
    `Iterable<String>` | `toRecord​(T instance)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultMapper

          public DefaultMapper​(Class<T> type)

    - #### DefaultMapper

          protected DefaultMapper​(Class<T> type,
                                  CoercingConverter coercingConverter)

  - ### Method Detail

    - #### getHeaders

          public Iterable<String> getHeaders()

    - #### fromRecord

          public T fromRecord​(org.apache.commons.csv.CSVRecord record)

      Specified by:
        `fromRecord` in interface `CsvReaderMapper<T>`

    - #### toRecord

          public Iterable<String> toRecord​(T instance)

      Specified by:
        `toRecord` in interface `CsvWriterMapper<T>`