Showing posts with label enum. Show all posts
Showing posts with label enum. Show all posts
Monday, December 17, 2018
Java 8 Refactoring Part 5: Improving enum with a BiFunction
This is the last refactoring that Victor Rentea did in the devoxx conference in London. He used a BiFunction to be able to provide more flexibility to an Enum. A very interesting refactor.
Labels:
bi Function,
clean code,
enum,
java,
java 8,
refactor,
Refactoring,
softwarecraftsmanship
Tuesday, April 11, 2017
Refactor switch to Enum
Do switch statements sound good to you?
Trust me better switch to Enum before it destroys your ears ;)
Labels:
clean code,
code smell,
enum,
java,
refactor,
switch statements,
tips and tricks
Subscribe to:
Posts (Atom)