android - Overloaded Generics in Java -


is there way in java, c#?

public interface basefragmentpresenter<t> {     void init(t view); }  public interface basefragmentpresenter<t,v> {     void init(t view, v relativeview); } 

i'm not sure you're trying accomplish, looks want call 2 different interface methods, each named init, , each passed view(s) of sub-type. suit needs?

public interface basefragmentpresenter {     void init(view view);     void init(view view, view relativeview); } 

using view allow pass in view of type.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -