I have this two interfaces and classes:
public interface Identifiable { T getId(); } public interface GenericRepository
Why you cannot remove second K from,
public interface GenericRepository, K> {
So rather than having it as above, can we have it as
public interface GenericRepository> {
By this we can do what you want to do.