generics - What does this Java syntax mean? (`Class<? extends ContactAccessor> clazz`) -


i have been developing android applications 1 month getting pretty familiar java syntax today stumbled upon piece of code :

try {     class<? extends contactaccessor> clazz =                       class.forname(classname).assubclass(contactaccessor.class);     sinstance = clazz.newinstance(); } catch (exception e) {     throw new illegalstateexception(e); } 

could explain me class<? extends contactaccessor> clazz does?

it means have class contactaccessor class or sub class of class or interface.

since have contactaccessor.class already, assume have sub class.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -