Skip to content

Commit

Permalink
Merge pull request #10 from trello/dlew/final
Browse files Browse the repository at this point in the history
Made all component utilities final
  • Loading branch information
dlew committed Jul 22, 2015
2 parents 4b94990 + 0a95a70 commit 985c6f3
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ public class RxActivity extends Activity implements ActivityLifecycleProvider {
private final BehaviorSubject<ActivityEvent> lifecycleSubject = BehaviorSubject.create();

@Override
public Observable<ActivityEvent> lifecycle() {
public final Observable<ActivityEvent> lifecycle() {
return lifecycleSubject.asObservable();
}

@Override
public <T> Observable.Transformer<T, T> bindUntilEvent(ActivityEvent event) {
public final <T> Observable.Transformer<T, T> bindUntilEvent(ActivityEvent event) {
return RxLifecycle.bindUntilActivityEvent(lifecycleSubject, event);
}

@Override
public <T> Observable.Transformer<T, T> bindToLifecycle() {
public final <T> Observable.Transformer<T, T> bindToLifecycle() {
return RxLifecycle.bindActivity(lifecycleSubject);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ public class RxDialogFragment extends DialogFragment implements FragmentLifecycl
private final BehaviorSubject<FragmentEvent> lifecycleSubject = BehaviorSubject.create();

@Override
public Observable<FragmentEvent> lifecycle() {
public final Observable<FragmentEvent> lifecycle() {
return lifecycleSubject.asObservable();
}

@Override
public <T> Observable.Transformer<T, T> bindUntilEvent(FragmentEvent event) {
public final <T> Observable.Transformer<T, T> bindUntilEvent(FragmentEvent event) {
return RxLifecycle.bindUntilFragmentEvent(lifecycleSubject, event);
}

@Override
public <T> Observable.Transformer<T, T> bindToLifecycle() {
public final <T> Observable.Transformer<T, T> bindToLifecycle() {
return RxLifecycle.bindFragment(lifecycleSubject);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ public class RxFragment extends Fragment implements FragmentLifecycleProvider {
private final BehaviorSubject<FragmentEvent> lifecycleSubject = BehaviorSubject.create();

@Override
public Observable<FragmentEvent> lifecycle() {
public final Observable<FragmentEvent> lifecycle() {
return lifecycleSubject.asObservable();
}

@Override
public <T> Observable.Transformer<T, T> bindUntilEvent(FragmentEvent event) {
public final <T> Observable.Transformer<T, T> bindUntilEvent(FragmentEvent event) {
return RxLifecycle.bindUntilFragmentEvent(lifecycleSubject, event);
}

@Override
public <T> Observable.Transformer<T, T> bindToLifecycle() {
public final <T> Observable.Transformer<T, T> bindToLifecycle() {
return RxLifecycle.bindFragment(lifecycleSubject);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ public class RxAppCompatActivity extends AppCompatActivity implements ActivityLi
private final BehaviorSubject<ActivityEvent> lifecycleSubject = BehaviorSubject.create();

@Override
public Observable<ActivityEvent> lifecycle() {
public final Observable<ActivityEvent> lifecycle() {
return lifecycleSubject.asObservable();
}

@Override
public <T> Observable.Transformer<T, T> bindUntilEvent(ActivityEvent event) {
public final <T> Observable.Transformer<T, T> bindUntilEvent(ActivityEvent event) {
return RxLifecycle.bindUntilActivityEvent(lifecycleSubject, event);
}

@Override
public <T> Observable.Transformer<T, T> bindToLifecycle() {
public final <T> Observable.Transformer<T, T> bindToLifecycle() {
return RxLifecycle.bindActivity(lifecycleSubject);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ public class RxDialogFragment extends DialogFragment implements FragmentLifecycl
private final BehaviorSubject<FragmentEvent> lifecycleSubject = BehaviorSubject.create();

@Override
public Observable<FragmentEvent> lifecycle() {
public final Observable<FragmentEvent> lifecycle() {
return lifecycleSubject.asObservable();
}

@Override
public <T> Observable.Transformer<T, T> bindUntilEvent(FragmentEvent event) {
public final <T> Observable.Transformer<T, T> bindUntilEvent(FragmentEvent event) {
return RxLifecycle.bindUntilFragmentEvent(lifecycleSubject, event);
}

@Override
public <T> Observable.Transformer<T, T> bindToLifecycle() {
public final <T> Observable.Transformer<T, T> bindToLifecycle() {
return RxLifecycle.bindFragment(lifecycleSubject);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ public class RxFragment extends Fragment implements FragmentLifecycleProvider {
private final BehaviorSubject<FragmentEvent> lifecycleSubject = BehaviorSubject.create();

@Override
public Observable<FragmentEvent> lifecycle() {
public final Observable<FragmentEvent> lifecycle() {
return lifecycleSubject.asObservable();
}

@Override
public <T> Observable.Transformer<T, T> bindUntilEvent(FragmentEvent event) {
public final <T> Observable.Transformer<T, T> bindUntilEvent(FragmentEvent event) {
return RxLifecycle.bindUntilFragmentEvent(lifecycleSubject, event);
}

@Override
public <T> Observable.Transformer<T, T> bindToLifecycle() {
public final <T> Observable.Transformer<T, T> bindToLifecycle() {
return RxLifecycle.bindFragment(lifecycleSubject);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ public class RxFragmentActivity extends FragmentActivity implements ActivityLife
private final BehaviorSubject<ActivityEvent> lifecycleSubject = BehaviorSubject.create();

@Override
public Observable<ActivityEvent> lifecycle() {
public final Observable<ActivityEvent> lifecycle() {
return lifecycleSubject.asObservable();
}

@Override
public <T> Observable.Transformer<T, T> bindUntilEvent(ActivityEvent event) {
public final <T> Observable.Transformer<T, T> bindUntilEvent(ActivityEvent event) {
return RxLifecycle.bindUntilActivityEvent(lifecycleSubject, event);
}

@Override
public <T> Observable.Transformer<T, T> bindToLifecycle() {
public final <T> Observable.Transformer<T, T> bindToLifecycle() {
return RxLifecycle.bindActivity(lifecycleSubject);
}

Expand Down

0 comments on commit 985c6f3

Please sign in to comment.