因此,可以用一种以上的方法引用同一目录。
So, the same directory can be referred to in more than one way.
在以上类中,我们定义了一个方法引用的Map。
In the class above we have defined a Map of method references.
类型,字段或方法引用,使用浏览器选择合适的元素。
Type, field or method reference using a browser for selecting the suitable element.
I'm using it as an abstraction, saying I'm going to have square root from somewhere, maybe I'll build it myself, maybe somebody gives it to me a s part of a library, so I'm burying the details inside of it.
我把这个方法作为一个抽象来引用,意味着我将会从另外一个,地方去求一个数的平方根,可能我会自己写这个方法,也可能我会从别人写的lib中去引用,因此我将实现的细节放到了其他地方。
应用推荐