Skip to main content

Timeline for Refactoring large switch statement

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
May 23, 2017 at 12:41 history edited CommunityBot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Feb 19, 2014 at 16:59 comment added ChrisW @avalancha How do you build the enum values? Instead of creating enum values, can you create instances of subclasses of an abstract class instead (or, select a flightweight singleton of a subclass)?
Feb 19, 2014 at 11:59 comment added abuzittin gillifirca You can put processStuff method in the enum using strategy pattern.
Feb 19, 2014 at 11:48 comment added avalancha The key is an enum I built and the value is String. Edited the question accordingly
Feb 19, 2014 at 10:39 history answered ChrisW CC BY-SA 3.0