How can I use Lambda Expressions in Java
<p>How can I use something like this (Lambda Expression) in Java with JDK7 ?</p>

<pre><code>public virtual IEnumerable&lt;TEntity&gt; Get(Expression&lt;Func&lt;TEntity, bool&gt;&gt; filter = null)
</code></pre>

<p>I am trying to pass this method a where clause to filter the select statement, in C# I can use Lambda expressions and I am searching for a solution to do this in my Java project.</p>

<pre><code>public List&lt;TEntity&gt; Get() {
    List&lt;TEntity&gt; result = emf.createEntityManager().createNamedQuery(ClassName + ".findAll").getResultList();
    return result;
}
</code></pre>

<p>This is my Method and i would like to pass a where clause tot this method.</p>
