Exploring Java 17 features like Sealed Classes, Records, new Switch statement in a simple Book Store API with Micronaut framework.
- Records reduce complexity, promote immutability and lead to more concise code.
- Sealed classes make it easier to control encapsulation and define how your API can be extended.
- Switch expressions & Pattern Matching increase the expressiveness and readability of your code.