Pages

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.



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 ;)



Share with your friends