Last active
          August 29, 2015 14:04 
        
      - 
      
- 
        Save oehme/952d0c3c8dd55f3f1ebc to your computer and use it in GitHub Desktop. 
    Defining custom operators on Observable
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | def static <T> myOperator(Observable<T> observable) { | |
| observable.lift(new MyOperator) | |
| } | |
| def static void main(String[] args) { | |
| Observable.just("Foo").myOperator | |
| //instead of | |
| Observable.just("Foo").lift(new MyOperator) | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment