How to make Generic Object in java implements an interface
Posted
by ahmed elbagoury
on Stack Overflow
See other posts from Stack Overflow
or by ahmed elbagoury
Published on 2010-03-13T23:20:37Z
Indexed on
2010/03/13
23:25 UTC
Read the original article
Hit count: 181
I want to have a generic object that implements an interface. I mean if i have a class A
Class A <E>{
E x;
}
I want to make sure that x will implement a particular interface(myInterface). In other words, that the type E implements an interface.
© Stack Overflow or respective owner