Java Syntax question

The last time I used Java was 1.5, could someone let me know what the ::new does ?

namedWriteables.add(new NamedWriteableRegistry.Entry(EvaluationMetric.class, RecallAtK.NAME, RecallAtK::new));

原文链接:Java Syntax question

© 版权声明
THE END
喜欢就支持一下吧
点赞7 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容