addCustomerBtn.addClickListener(e -> {
grid.select(null);
form.setCustomer(new Customer());
});
这是什么写法啊:addCustomerBtn.addClickListener(e -> {。。。});参数里的e->{}{}是什么意思呢?最近在一个叫vaadin框架上看到的,www.vaadin.com
addCustomerBtn.addClickListener(e -> {
grid.select(null);
form.setCustomer(new Customer());
});
这是什么写法啊:addCustomerBtn.addClickListener(e -> {。。。});参数里的e->{}{}是什么意思呢?最近在一个叫vaadin框架上看到的,www.vaadin.com
这是Java8的Lambda表达式,编译器会变成创建相应的Interface对象。