Source code and examples from the "Functional Modern Java" presentation, showcasing modern Java features and functional programming patterns.
- Java 21 (LTS) or higher
- Gradle 8.14.2 or higher (wrapper included)
./gradlew build
./gradlew test
./gradlew clean build
src/
├── main/java/ # Main source code with Java examples
├── test/java/ # JUnit 5 test suite
- Language: Java 21 (using Gradle toolchain)
- Build Tool: Gradle 8.14.2
- Testing: JUnit 5.13.2
- CI: GitHub Actions
This project demonstrates modern Java features including:
- Lambda expressions and functional interfaces
- Stream API and operations
- Optional handling
- Modern collection utilities
- HTTP client examples
- Local variable type inference (var)
- Interface enhancements
- Generics and type safety
All tests use JUnit 5. When adding new tests, follow the existing patterns and ensure compatibility with Java 21.