title: Generics and TreeSets
body: <p>Working with Generics is definitely my weak spot, and can use some help with this.</p>
  
  <p>The project is to develop a simple order/inventory system that places orders, keeps track of items and inventories, and keeps a record of all inventory and customer addition/removals since the program first started.  This requires reading and writing to a file, and I've picked the CSV format to parse.  There are two files to parse, one for <code>Customers</code> and one for <code>Items</code>.</p>
  
  <p>I want to use a TreeSet to make additions/searches log N, but am having some trouble with my file parsing.  Rather than have two classes with duplicate code working for their object type, I'd like to have a single parse class taking in the set and file path on execution, and processing the file into a complete set of objects, both of whom have differing fields and methods.</p>
  
  <p>The only solution I've come up with is <code>TreeSet&lt;? extends Object&gt;</code>, but that means that I'll have to box, then unbox each object as its accessed in the structure.  </p>
  
  <p>Is there an easier way?</p>