You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case when we have an action method in Category Interface with enumeration of labels, we need to create special enum for it, if there are no other options. I think, it will be better to provide special LabelInterface. So for example, this:
So the invocation of it will look like: analyticsPerson.live().flat() instead of analyticsPerson.live(FLAT)
Moreover it can help to decrease number of duplication since there could be several action methods with same enum params, and when they will be used we can totally replace one invocation with another.
The text was updated successfully, but these errors were encountered:
In case when we have an action method in Category Interface with enumeration of labels, we need to create special enum for it, if there are no other options. I think, it will be better to provide special LabelInterface. So for example, this:
will be converted to this:
So the invocation of it will look like:
analyticsPerson.live().flat()
instead ofanalyticsPerson.live(FLAT)
Moreover it can help to decrease number of duplication since there could be several action methods with same enum params, and when they will be used we can totally replace one invocation with another.
The text was updated successfully, but these errors were encountered: