title: How to pass a getter as lambda function?
body: <p>I want to pass the getter of a bean as a function. When the function is called the getter should be invoked. Example:</p>
  
  <pre><code>public class MyConverter {
      public MyConverter(Function f) {
            this.f = f;
      }
  
      public void process(DTO dto) {
           // I just want to call the function with the dto, and the DTO::getList should be called
           List&lt;?&gt; list = f.call(dto);
      }
  }
  
  public class DTO {
      private List&lt;String&gt; list;
      public List&lt;String&gt; getList() { return list; }
  }
  </code></pre>
  
  <p>Is that possible with java 8?</p>