I store in a HashMap 3 types of object.
HashMap> [\'Lorry\', [list of lorries]] [\'Sport\', [list of sport\'s cars]] <
HashMap> [\'Lorry\', [list of lorries]] [\'Sport\', [list of sport\'s cars]]
A HashMap is the right data structure for the job, but in your case you might consider using two HashMaps: One holding the relation 'Car Type' -> 'Cars of that Type', and a second one for the relation 'ID' -> 'Car with that ID'.
HashMap