Lambda (5): “This” under the context of Jvava 8 lambda

 Today I wanna talk about how keyword “This” can have a totally different definition,  under the context of lambda function on Java 8. As you all may notice, lambda expression allow developer to pass method with specific parameter and type of result into another method as a parameter. Usually it can be done on one … Continue reading Lambda (5): “This” under the context of Jvava 8 lambda

Lambda (4): Functional function interface

Hows the exploring with the functional interface going? Today, we would talk about one of the stock interface come with J2SE (Function). Yes, it’s call function, the only bit special compare to other interface is that it come with magical method <Andthen() || Compose()>. By making good use of those two methods. It allow Dev … Continue reading Lambda (4): Functional function interface

Lambda (3) Function as an object (The JS way coding?)

This week gonna be a short one, mainly extends the concept we talked last week. As Java.util.function got introdcued on J2SE. It provide a package for default lambda interface, it's out of the box, can implement it straight away with no hesitation. But this week we would focus on the way of writing lambda code, … Continue reading Lambda (3) Function as an object (The JS way coding?)

Stream(2): Reduce

Reduce, which is one of way when performing accumulate operation on Stream, Stream would perform operation with the current element and the accumulate result from previous calculation. The whole thing by itself is sequential and not applicable to multiple thread, unless you have declare how Stream should glue partial result together. Which would be discuss … Continue reading Stream(2): Reduce