title: Passing a single param instead of a list to Write() method of ItemWriter interface
body: <p>I am using Spring Batch to read data from a CSV file and then save it into a database. So far all is good, except my input file contain a mixed data (multiple columns for multiple tables). </p>
  
  <p>I created a class <code>CsvFileLine</code> that will contain  a whole line of the file, and implemented the interface <code>ItemReader&lt;CsvFileLine&gt;</code> and then implemented the interface <code>ItemProcessor&lt;List&lt;CsvFileLine&gt;, ProcessorResult&gt;</code> to whom I will pass a list of <code>CsvFileLine</code>and it returns an object of type <code>ProcessorResult</code> that I created also and contains 3 <code>ArrayList&lt;&gt;</code> of <code>ClassA</code>, <code>ClassB</code> and <code>ClassC</code>.</p>
  
  <p>My problem now is when I need to implement the interface <code>ItemWriter&lt;ProcessorResult&gt;</code> the method <code>write(List&lt;? extends T&gt; items)</code> needs a list of items that are extending some other class while I intend to pass a single object which is ProcessorResult containing the 4 ArrayLists with the necessary data.</p>
  
  <p>Can anyone suggest me how to deal with this case ? Is there a work around to pass only 1 parameter ?</p>