Consider using an **enum** here, or even better, you should pass a different **AddDialogListener** in each case so that you don't need to switch on the add type at all. Dispatching on values isn't so object-oriented and should be avoided where possible.