你的评论
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"?
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"?
UserEcho 的客户支持
Have you looked at the builder pattern perhaps?
Google for java builder examples, but youll have something like MyClass.builder().setProperty1().setProperty2().build();