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
Post a Comment