Lambda expressions in Java 8 (4) Method Reference-Variable Capture-Intersection type-Invoke dynamic
Ramin Zare
و اما بخش چهارم و آخر درباره Method Reference ها حرف میزنیم.
Method Reference ها چه هستند؟ بهتر است بگوییم صرفا روشی برای ساده نویسی در Lambda ها محسوب میشوند. سوال مطرح دیگر این است که در بدنهی Lambda ها از چه Variableهایی استفاده میشود؟ و در پایان این بخش، ویژگیهای دیگر جاوا ۸ Intersection Type ها هستند وinvoke dynamic ها را بررسی میکنیم!
00:00 یکی از Method Refrenceها
04:42 نمونههای مختلفی از Method Referenceها
05:02 typeName براساس Method Reference
05:21 ObjectReference براساس Method Reference
06:21 ClassName براساس Method Reference
09:29 TypeName.Super براساس Method Reference
11:31 ClasseName.new و ArrayTypeName براساس Method Reference
16:52 Variable Capture داخل بدنه Lambda
19:15 Intersection Type in Java
26:15 Invoke dynamic in Lambda expressions
30:49 بخش پایانی #java #جاوا #java8
...
https://www.youtube.com/watch?v=qaazE3-JVaI
89825005 Bytes