Your comments
if not each condition is implementation of an interface as per strategy pattern perhaps?
is there any overlap in the behavior of the "do somethings"?
Customer support service by UserEcho
if not each condition is implementation of an interface as per strategy pattern perhaps?
is there any overlap in the behavior of the "do somethings"?
Customer support service by UserEcho
Have you looked at the builder pattern perhaps?
Google for java builder examples, but youll have something like MyClass.builder().setProperty1().setProperty2().build();