To reduce dependece of class, I want to send parameter (using generic class) to constructor that extends some class and implements interface, for example
public
It's easy if i understand you correct you to have some type T which is extending Fragment and implementing some interface. So you have to write something like that.
abstract class TemplateFragment extends Fragment implements SomeInterface{}
and then in your classes
class SomeClass {
...
}
It will do the trick.