Writing a lambda expression when parameters are ignored in the body
<p>How do I write a lambda expression if it doesn't require arguments and hence its name is excessive?</p>

<p>This way doesn't compile:</p>

<pre><code>setRowFactory(-&gt; new TableRowCustom());
</code></pre>

<p>But this one does:</p>

<pre><code>setRowFactory(__ -&gt; new TableRowCustom());
</code></pre>

<p>Is there a better way?</p>