title: Extract object from list java with lambdaj
body: <p>I have a list of  with some fields, one of these is "number plate".</p>
  
  <p>From the HTML arrives the number plate and I want extract the object car with number plate equal to that which arrives.</p>
  
  <p>I want use <a href="https://code.google.com/archive/p/lambdaj/" rel="nofollow">lambdaj</a> but I have a some problem.</p>
  
  <pre><code>Car car=selectFirst(flatten(extract(listCar, on(Car.class).getClass())),
                                having(on(car.class).getClass(), equalTo("mycode")));
  </code></pre>
  
  <p>If I put getNumberPlate, the code say the not exist! I must insert getClass  O.o</p>
  
  <p>PS. I must use Java 1.6. I can't use Java Lambda ( Java 1.8 version)</p>