java - When creating generic class objects I am getting null. Why? -


I am getting zero values ​​when creating normal class objects Help me

  ObjectifyGenericDao public class & lt; T & gt; {Safe class & lt; T & gt; Clazz; Public T getByProperty (String Prop Name, Object Propulsion) {// The Null System is Returning. Out.println (this.clazz); }}  

I am accessing such an object

  ObjectifyGenericDao & lt; Users & gt; Dao = Insert new object & lt; Users & gt; (User.class); User user = dao.getByProperty ("user_id", userId);  

How does it compile? You are not returning anything by this method, which announces a return type. Would you please post more than Claude? There is no manufacturer.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -