title: Filter list of objects by properties and generate list of properties in java
body: <p>Say I have an object</p>
  
  <pre><code>@AllArgsConstructor
  class Foo {
   String name;
   int age;
  }
  
  public static void main() {
    List&lt;Foo&gt; fooList = new ArrayList&lt;Foo&gt;();
    ... populate list...
    List&lt;String&gt; filteredByName = getFilteredList(fooList);
  }
  
  public List&lt;String&gt; getFilteredList(List&lt;Foo&gt; fooList) {
    List&lt;String&gt; nameList = new ArrayList&lt;String&gt;();
    for(Foo foo : fooList) {
       if("someword".isGreaterThan(foo.getName()) {
          nameList.add(foo.getName());
       }
    }
  }
  </code></pre>
  
  <p>I'd like to have a one line representation of getFilteredList. 
  Google Guava/ Apache have Predicates, that can filter a list of objects to a smaller list, not sure if there is something similar to filter out a list of properties alone.</p>