I’m looking at the documentation of JasperReports and I do not understand the return type of the following method:
public java.lang.Class<?> getValueClass()
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Class<?>refers to any instance of Class. As compared toClass<? extends Collection>which would narrow the criteria down to a limited group of classes (those that extendCollection).This is particularly important when calling methods like
newInstance. If you haveClass<?> aand calla.newInstance()you’ll get anObject. if you haveClass<? extends Collection>and callb.newInstance()you’ll get an instance ofCollection.