package rxjoin.example.viewmodel;

import rx.Observable;
import rx.functions.Func3;
import rx.subjects.BehaviorSubject;
import rxjoin.annotation.In;
import rxjoin.annotation.Out;

public class ColorPickerViewModel {

    @In("red") public BehaviorSubject<Integer> red = BehaviorSubject.create();
    @In("green") public BehaviorSubject<Integer> green = BehaviorSubject.create();
    @In("blue") public BehaviorSubject<Integer> blue = BehaviorSubject.create();

    @Out("color") public Observable<Integer> color = Observable.combineLatest(red, green, blue,
            new Func3<Integer, Integer, Integer, Integer>() {
                @Override public Integer call(Integer r, Integer g, Integer b) {
                    return (0xFF << 24) | (r << 16) | (g << 8) | b;
                }
            });
}

@@ -504,18 +504,41 @@
 r%3E color
- =
+Method() %7B%0A        return
  Observa
@@ -585,16 +585,20 @@
         
+ 
+   
 new Func
@@ -635,24 +635,28 @@
 nteger%3E() %7B%0A
+    
             
@@ -740,24 +740,28 @@
             
+    
 return (0xFF
@@ -812,18 +812,26 @@
         
+  
-%7D%0A
+  %7D%0A    
         
@@ -838,10 +838,16 @@
     %7D);%0A
+    %7D%0A
 %7D%0A

Make ColorPickerViewModel.color a method