I have a type T
that implements interface I
, how do I specify that a method takes an object T
that implements I
, eg.
public SomeClass(T<implements I> parameter) {
....
}
public someReturnType someMethod(I parameter) {
...
}
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments