From the below line I get an Object of PdsLongAttrImpl
Object obj = typeInfo.getParseMethod().invoke(null, rawValue);
And that object has propertyKey and Value as the fields.
How can I get the Value from that particular above Object?
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.
Cast the
objto type of the return.For example if your expected return type is
PdsLongAttrImplThen, it would be:
//Then perform operation on
pdsObj.NOTE: If obj is not of the type you are casting to, you will end up with
ClassCastException.