java 8 lambda 教程

时间:2017-07-10 05:03:39
【文件属性】:

文件名称:java 8 lambda 教程

文件大小:383KB

文件格式:PDF

更新时间:2017-07-10 05:03:39

java 8 lambda

java 8 lambda Concise syntax – More succinct and clear than anonymous inner classes • Deficiencies with anonymous inner classes – Bulky, confusion re “this” and naming in general, no nonfinal vars, hard to optimize • Convenient for new streams library – shapes.forEach(s -> s.setColor(Color.RED)); • Similar constructs used in other languages – Callbacks, closures, map/reduce idiom • Step toward true functional programming


网友评论

  • 不错,真是雪中送炭!