title: How to get max() element from List in Guava
body: <p>Let's say we have a Collection of Items:</p>
  
  <pre><code>class Item {
      public String title;
      public int price;
  }
  
  List&lt;Item&gt; list = getListOfItems();
  </code></pre>
  
  <p>I would like to get an Item with a maximum price out of that list with Guava library (with <a href="https://google.github.io/guava/releases/22.0/api/docs/com/google/common/collect/Ordering.html" rel="nofollow noreferrer">Ordering</a>, I presume). I mean something similar to this Groovy code: </p>
  
  <pre><code>list.max{it.price}
  </code></pre>
  
  <p>How do I do that? How efficient is it?</p>