instead of using anonymous classes like so
register(new EventListener() {
@Override
public void apply(Event e) {
// do your work
}
});
with java 8 I can use lambda expressions:
register(e -> (// do your work));
But what if the method in my interface is annotated?
interface EventListener {
@Annotation
void apply;
}
Is it possible to annotate a lambda expression? (Specifically, I want to use Guava's EventBus.register() method with lambda expressions)