How to port a Func<Hash, string, object> in Java?
<p>How would you port this c# code over to Java?</p>

<pre><code>public Hash(object defaultValue)
: this()
{
_defaultValue = defaultValue;
}

public Hash(Func&lt;Hash, string, object&gt; lambda)
: this()
{
_lambda = lambda;
}

public Hash()
{
_nestedDictionary = new Dictionary&lt;string, object&gt;(Template.NamingConvention.StringComparer);
}
</code></pre>
