title: Passing anonymous function to a method, storing it and executing it?
body: <p>I need to pass a function to method, storing it on some variable visible inside the class, and lately executing it ( without parameters ).</p>
  
  <p>In ActionScript 3 it would be :</p>
  
  <pre><code>private var lateCall : Function;
  ..
  
  function getTheLateCall( o : Function ) : void
  {
     lateCall = o;
  }
  ...
  
  function someFunction() : void
  {
     lateCall();
  }
  </code></pre>
  
  <ul>
  <li>Is there something equal in Java ?</li>
  </ul>