Tagged articles
Functional Interfaces
22 articles · Page 1 of 1
This article shows how to eliminate repetitive database validation code by creating generic reusable methods using Java 8 functional interfaces and MyBatis Plus SFunction, demonstrating ensureColumnValueValid, validateColumnValueMatchesExpected, and validateColumnValueInExpectedList with before-and-after comparisons.
Functional InterfacesGenericsJava 8
0 likes · 14 min read

This article explains the four types of Java method references (static, bound instance, arbitrary instance, constructor), their equivalent lambdas, compiler overload resolution, readability trade-offs, and practical examples showing when method references improve clarity versus when lambdas remain preferable.
Best PracticesCode ReadabilityCompiler Overload Resolution
0 likes · 21 min read

This article breaks down four modern Java Lambda techniques—using '_' placeholders, switch pattern matching, standard functional interfaces with type inference, and record‑based streams—to show how developers can write clearer, more expressive code that aligns with Java 21‑25 language evolution.
Functional InterfacesJavaJava 22
0 likes · 7 min read

The article explains why traditional static utility classes become hard‑to‑maintain technical debt, and demonstrates how Java 8’s functional interfaces and lambdas can replace them with injectable, testable, composable validation rules, reducing refactoring cost and improving code evolution.
Functional InterfacesJavaUtility Classes
0 likes · 7 min read

This article explains what Java lambda expressions are, why they were introduced, their syntax and classifications, functional interfaces, core functional interfaces, method references, and provides multiple code examples that progressively simplify traditional anonymous inner classes into concise lambda forms.
Functional InterfacesJavaLambda Expressions
0 likes · 15 min read

This guide explains how Java can mimic function pointers using interfaces with anonymous classes, lambda expressions, built-in functional interfaces, method references, reflection, the command pattern, and enum-based implementations, comparing their advantages, drawbacks, and ideal use cases for modern and legacy codebases.
Functional InterfacesJavafunction pointers
0 likes · 14 min read

This article explains Java 8's lambda expressions and functional interfaces, demonstrates common functional interfaces with code examples, and shows how to use Stream API operations such as filter, map, flatMap, collect, max/min, count, reduce, and advanced collectors for efficient backend development.
Functional InterfacesJavaJava8
0 likes · 14 min read

This article explains Java 8's lambda expressions, functional interfaces, and the Stream API, demonstrating how immutable values and functions enable concise data processing through lazy and eager evaluation, with practical code examples covering predicates, consumers, mapping, filtering, grouping, and reduction.
CollectorsFunctional InterfacesJava
0 likes · 12 min read

This article introduces Java 8's lambda expressions, functional interfaces, and the Stream API, explaining key concepts such as lazy and eager evaluation, and demonstrates common stream operations like collect, filter, map, flatMap, max/min, count, and reduce with concrete code examples.
BackendCollectorsFunctional Interfaces
0 likes · 16 min read

This article explains Java functional interfaces, the java.util.function package, and provides an in‑depth look at the internal structure of the Stream API, including pipelines, intermediate and terminal operations, collectors, and the parallel execution model based on ForkJoin tasks.
Functional InterfacesJava 8Parallel Streams
0 likes · 23 min read

This article demonstrates how to replace verbose Java object instantiation and setter calls with a reusable generic Builder that supports chained property setting via functional interfaces, showing both a simple example and a full implementation supporting up to three parameters per setter.
Builder PatternFunctional InterfacesGeneric Builder
0 likes · 8 min read

This article explains Java 8's lambda expressions and functional interfaces, demonstrates common Stream operations such as filter, map, flatMap, collect, max/min, count and reduce, and shows how to use advanced collectors for grouping, partitioning and joining with clear code examples.
CollectorsFunctional InterfacesJava
0 likes · 12 min read

This article introduces Java 8's lambda expressions and functional interfaces, demonstrates custom functional interfaces, and explains how to use the Stream API with operations such as collect, filter, map, flatMap, max/min, count, reduce, partitioningBy, groupingBy, and joining, providing code examples throughout.
CollectorsFunctional InterfacesJava
0 likes · 13 min read

This article explains Java 8's functional interfaces, lambda expressions, method references, lazy versus eager evaluation, and demonstrates how to use the Stream API—including collect, filter, map, flatMap, max/min, count, reduce, and various collectors—to write concise, expressive code for processing collections.
CollectorsFunctional InterfacesJava
0 likes · 15 min read

This article explains Java 8's lambda expressions and functional interfaces, demonstrates common Stream operations such as filter, map, flatMap, max/min, count, and reduce, and shows how to use built‑in collectors like toList, partitioningBy, groupingBy, and joining with practical code examples.
CollectorsFunctional InterfacesJava8
0 likes · 16 min read

This article introduces Java 8’s key functional programming features—lambda expressions, functional interfaces, and the Stream API—explaining concepts such as lazy and eager evaluation, and demonstrating common operations like filter, map, flatMap, collect, reduce, and grouping with clear code examples.
CollectorsFunctional InterfacesJava 8
0 likes · 15 min read

This article introduces Java 8's method reference syntax and the Optional class, explaining static, instance, and constructor references, demonstrating their use with functional interfaces such as Function and BiFunction, and providing practical code examples to write more concise and null‑safe Java code.
Functional InterfacesJavaJava 8
0 likes · 8 min read

This article explains Java 8's method reference syntax—including static, instance, and constructor references—shows how to assign them to functional interfaces, introduces the Optional class for null‑safe programming, and demonstrates the static‑factory‑method (of) pattern with clear code examples.
Functional InterfacesJava 8Method References
0 likes · 8 min read

This article introduces Java 8's lambda expressions and functional interfaces, demonstrates their usage with examples, and explains how to leverage the Stream API—including operations like filter, map, flatMap, reduce, collect, and grouping—to process collections efficiently.
CollectorsFunctional InterfacesJava
0 likes · 15 min read

This article provides a comprehensive guide to Java Lambda expressions, functional interfaces, method and constructor references, and the Stream API, explaining syntax, usage examples, type inference, and new collection methods introduced in Java 8 for functional programming.
Functional InterfacesJavaJava8
0 likes · 30 min read

An extensive guide to Java 8’s new capabilities, covering lambda expressions, functional interfaces, streams, default methods, Optional, CompletableFuture, the new date‑time API, concurrency enhancements, and numerous language and library improvements, with detailed explanations and code examples.
CompletableFutureConcurrencyFunctional Interfaces
0 likes · 51 min read

This article introduces Java 8's lambda expressions and functional interfaces, demonstrates custom functional interfaces, and explains how to use the Stream API with lazy and eager evaluation for operations such as collect, filter, map, flatMap, max/min, count, reduce, and various collectors.
Functional InterfacesJavaJava 8
0 likes · 14 min read
