Useful or not, from you.
java-design-patterns Enum based strategy

The current strategy example demonstrates the classic pattern with interfaces and implementations, but there is another way using enums. The basic principle is explained here: https://mcvalls.medium.com/how-to-implement-the-strategy-pattern-with-enums-in-java-19eb7168c247

Let's amend our strategy pattern example with the enum-based implementation.

That's a useful answer
Without any help

Hello! Can I start working on that?