B
Brian Andrus
I am trying to put together a function (I think in java these are
called methods?) in java that returns a custom type (as defined by a
..jar file I have to import), but I don't know how to set and return
it. I figured out how to read the components of the custom types that
are passed to the function, but now I have to return stuff.
Yeah, I am in over my head, esp since one week ago I hadn't done
anything more than javascript, but if I figure this out, I will have
enough knowledge to know what I am asking for when I ask for a method
to be made.
My declaration for the Method:
public receiveData handleData(DataConfig config,
java.util.Map formData,
double amount,
java.lang.String currencyCode,
java.lang.Integer transactionId,
java.util.Date date)
This is dictated to me, so I cannot change it.
Info about receiveData:
public class receiveData
extends java.lang.Object
Field Summary:
private java.lang.String processId
private java.lang.String userName
private java.lang.String userNumber
private java.lang.String errorMessage
private java.lang.String reference
private java.lang.String response
private boolean success
private boolean again
-----------------------------
so once I have all the receiveData info in variables, how do I return
them as the receiveData data type?
Thanks in advance for any and all help.
If you wish to flame me, relax, it isn't going to help any of us and
just wastes even more bandwidth than just this sad post.
Brian Andrus
batman (at) thundermail (dot) com
called methods?) in java that returns a custom type (as defined by a
..jar file I have to import), but I don't know how to set and return
it. I figured out how to read the components of the custom types that
are passed to the function, but now I have to return stuff.
Yeah, I am in over my head, esp since one week ago I hadn't done
anything more than javascript, but if I figure this out, I will have
enough knowledge to know what I am asking for when I ask for a method
to be made.
My declaration for the Method:
public receiveData handleData(DataConfig config,
java.util.Map formData,
double amount,
java.lang.String currencyCode,
java.lang.Integer transactionId,
java.util.Date date)
This is dictated to me, so I cannot change it.
Info about receiveData:
public class receiveData
extends java.lang.Object
Field Summary:
private java.lang.String processId
private java.lang.String userName
private java.lang.String userNumber
private java.lang.String errorMessage
private java.lang.String reference
private java.lang.String response
private boolean success
private boolean again
-----------------------------
so once I have all the receiveData info in variables, how do I return
them as the receiveData data type?
Thanks in advance for any and all help.
If you wish to flame me, relax, it isn't going to help any of us and
just wastes even more bandwidth than just this sad post.
Brian Andrus
batman (at) thundermail (dot) com