java generic extends two interfaces