title: Sort and filter a list of objects
body: <p>I defined a <code>Product</code> class like this:</p>
  
  <pre><code>public class Product {
      String name;
      ProductType type;
      BigDecimal price;
      // Getters and Setters omitted
  }
  </code></pre>
  
  <p>With the <code>ProductType</code> as an <code>enum</code> class:</p>
  
  <pre><code>public enum ProductType {
      APPLE, PEAR, BANANA
  }
  </code></pre>
  
  <p>Now I have created a <code>List&lt;Product&gt;</code> where I added all kinds of products. What I would like to do is to be able to sort this list on price and filter it on type.</p>
  
  <p>What are the standard ways to implement this kind of behavior?</p>