Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 334 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 334 Bytes

Haxe Interface Handlers

This module lets you use HaXe closures easily with native Java APIs. Example:

import com.boltmade.InterfaceHandlers.toHandler
import java.lang.Runnable;

class SomeClass {
  function something() {
    someJavaMethodTakes(toHandler(function(){
      trace("ran!");
    }, Runnable.run));
  }
}