Given:
Activation that implements n interfaces. References to them are passed to another class (the ViewPager ViewPager handler, for example), through the constructor arguments.
Idea:
Instead of transmitting a set of different types of arguments, only one type is sent - activation type, the interface implements, in the name of reducing the number of arguments with further casting the activation link to the type of necessary interfaces.
Doubts:
Something somewhere once read about memory leaks when using links to activate. On the other hand, the links to the implemented activation interface are the same, right?
Question:
Is it worth it to give the class references to the interfaces implemented in the activity by referring to Activity , and not to interfaces?