Android Era with Kotlin and Java

Important: Read dos and don'ts here: androidera.github.io . Ma...
Mar 5, 2015 05:54
Question is asking about sending massages (sic) on Steam. I don't even want to correct it.
 

Java

Dedicated to the discussion of the Java programming language a...
Dec 29, 2014 08:45
Thanks
Dec 29, 2014 08:45
I guess the question's not too opinion based for that
Dec 29, 2014 08:44
/should
Dec 29, 2014 08:43
I'm just wondering if my organization could be improved
Dec 29, 2014 08:43
The code itself works
Dec 29, 2014 08:40
Alright
Dec 29, 2014 08:38
The Builder is stack based but the script itself is a queue
Dec 29, 2014 08:37
The script has both regular actions executed in series and parallel actions executed at any time; these special classes are added as regular actions and indicate that one of the parallel actions should start or stop running
Dec 29, 2014 08:34
Sounds about right
Dec 29, 2014 08:34
A Script is a series of actions; these special actions sort-of modify the script itself
Dec 29, 2014 08:33
I'm thinking in terms of, should I split Script into its own package?
Dec 29, 2014 08:33
I'd say they're all important, though the special actions less so
Dec 29, 2014 08:30
My Script class has 4 static inner classes, 1 Builder, 1 State class, and 2 special Script action classes. None of them are useful without a Script, but is that too many inner classes?
Dec 29, 2014 04:09
Well if you need to reflect changes in real time, that means repainting when you're not in focus
 
Feb 10, 2014 18:50
You can run the program through your debugger to see for yourself where execution goes and what happens. Actually, reviewing your code, what is the difference supposed to be between setViewData(x, y, z) and getViewData(x, y, z)? They seem to do exactly the same thing by different methods and with different output.
Feb 10, 2014 18:50
If you want the flow to be like that, you would have to code it as callback.extractViewData(rpc.getViewData(null,null,null));. As is, it tries to call public ViewData getViewData(String accountId, String accountLevel, String ymId, AsyncCallback callback), and I'm surprised the program compiles since you say there's no such method. Actually, wait, your interface dictates the existence of this method, which is still the ultimate source of your results here.
Feb 9, 2014 22:12
That is the interface which says that the public void getViewData(String accountId, String accountLevel, String ymId, AsyncCallback<ViewData> callback); method should exist. What matters is how the method is coded.
Feb 9, 2014 22:12
rpc.getViewData(null, null, null, callback) is declared as getViewData(String accountId, String accountLevel, String ymId, AsyncCallback callback), not as any of the declarations you have shown us.
Feb 9, 2014 22:12
Actually, that won't help at all. The fact that the program compiles as written means that somewhere in your code, you already wrote public ViewData getViewData(String accountId, String accountLevel, String ymId, AsyncCallback callback). I was wanting to see how you had coded this method.
Feb 9, 2014 22:12
Please show us the code which calls setViewData and getViewData. Also, your getViewData(String, String, String) function makes little sense; it sets the current viewData to be a copy of itself, ignores the arguments given to it, and then displays information about the current viewData.
Feb 9, 2014 22:12
rpc.getViewData(null, null, null, callback); You haven't shown us this particular overloading of the method; only the 0-argument and 3-argument ones.