Implementation of an interface by parametrizing only at function level

141
July 26, 2017, at 03:03 AM

If I have 2 interfaces like this:

public interface I2 {
   <T extends I1> Date compute (T p1);
}

and a regular interface I1 , thats doesn't matter how it looks.

Is it possible to implement a class with a function like this:

public class C2 implements I2 {
   Date compute (C1 p1){
      ....
   }
}

without parametrizing the I2 interface ?

PS C1 is a class implementing I1

READ ALSO
Mylyn WikiText Extras won’t install in eclipse Oxygen, says Mylyn WikiText 3.0.6 is installed

Mylyn WikiText Extras won’t install in eclipse Oxygen, says Mylyn WikiText 3.0.6 is installed

Vogella suggests installing Mylyn WikiText Extras for editing asciidocBut on my (just installed) Eclipse Oxygen Java EE, it refuses to install

136
WebSocket: OnClose() is never called

WebSocket: OnClose() is never called

I'm implementing an application with a WebSocket endpointHere is some code:

230
Best practice of designing JPARepository(ies) for ORM Domain graph

Best practice of designing JPARepository(ies) for ORM Domain graph

I have been designing spring rest apis using standard MVC architecture like domain layer as POJOs and repositories to fetch domain data from db tablesSo far these entities were isolated so the design acted as separate RestController, Service, and Repository...

199
Java - Print a string in reverse [duplicate]

Java - Print a string in reverse [duplicate]

This question already has an answer here:

321