Tag Archives: Method References

Java 8+ Functional Programming :: Collections & Streams (1)

The Concept of a Collection A collection represents a group of objects, known as its elements.   The Collection Interface JDK 9 defines this interface as follows: public interface Collection extends Iterable { int size(); boolean isEmpty(); boolean contains(Object o); … Continue reading

Posted in functional interface, functional programming, java stream, lambda, lambda expression | Tagged , , , , | Leave a comment

Java 8+ Functional Programming :: Method References

You use lambda expressions to create anonymous methods. Sometimes, a lambda expression does nothing but call an existing method. In those cases, it’s often clearer to refer to the existing method by name. References are a subset of lambda expressions, … Continue reading

Posted in functional programming, lambda expression, Method References | Tagged , , | Leave a comment