プログラムdeタマゴ

nodamushiの著作物は、文章、画像、プログラムにかかわらず全てUnlicenseです

2016-12-07から1日間の記事一覧

Javaにlambda修飾子が欲しい

機能(関数)をクラス内に実装せずに、外部に委譲することがある。単純な例ではこんな感じ。 public class Action{ private Runnable action; public void setAction(Runnable action){this.action = action;} public void action(){ if(action != null) act…