What the <T> means in BeanFactory.java in spring? -


this question has answer here:

i'm reading spring source code, beanfactory.java have method:

<t> t getbean(class<t> requiredtype) throws beansexception; 

the second t return type, what's first mean?

it means method has type parameter. when call object of type class<t> returns object of type t.

the first t indication t type parameter.


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -