本文介绍了Java 8中::运算符的名称是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在以下任一资源中找不到Java 8中添加的 :: 运算符的名称:

I can't find the name of the :: operator added in Java 8 in either of the following resources:




  • Proposed Final Draft Specification: The Java Language Specification (JLS)
  • JSR-000335 Lambda Expressions for the Java Programming Language Proposed Final Draft

推荐答案

它应该被称为冒号结肠分隔符


  • Brian Goetz *将其称为冒号冒号,因为他是lambda JSR的规范负责人,我想我们可以将他视为权威来源。

  • :: 分类为分隔符。

  • Brian Goetz* calls it "colon colon" and since he was the specification lead for the lambda JSR I suppose we can consider him as an authoritative source.
  • The specification #3.11 classifies :: as a separator.

这篇关于Java 8中::运算符的名称是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 04:24