I want to create and export an object in one class and would like to import its value in other class (something similar to android Intent class).
Class A
@produce
private Object val; // do something with val
Class B
@consume
private object val; // use this val which was set by class A
I already have way to run class A before Class B methods Here I am looking something similar to what android Intent class does. Any thoughts or example which I can follow to achieve this kind of behavior.
0 comments:
Post a Comment