I want to have an argument of type "this class" in the signature of the interface method, so that any class, such as MyClass that implements it, will have this method with an argument of type MyClass .
public interface MyInterface { public thisClass myMethod(thisClass other); ... }
public class MyClass implements MyInterface {
Is this possible, or should I just bind the argument to the interface and check it for each implementation?
source share