From 0a95a70fce412273ad37eebc1555657688704660 Mon Sep 17 00:00:00 2001 From: Dan Lew Date: Wed, 22 Jul 2015 09:59:01 -0500 Subject: [PATCH] Made all component utilities final --- .../java/com/trello/rxlifecycle/components/RxActivity.java | 6 +++--- .../com/trello/rxlifecycle/components/RxDialogFragment.java | 6 +++--- .../java/com/trello/rxlifecycle/components/RxFragment.java | 6 +++--- .../rxlifecycle/components/support/RxAppCompatActivity.java | 6 +++--- .../rxlifecycle/components/support/RxDialogFragment.java | 6 +++--- .../trello/rxlifecycle/components/support/RxFragment.java | 6 +++--- .../rxlifecycle/components/support/RxFragmentActivity.java | 6 +++--- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/RxActivity.java b/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/RxActivity.java index 5c0bc6c..7b939cc 100644 --- a/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/RxActivity.java +++ b/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/RxActivity.java @@ -12,17 +12,17 @@ public class RxActivity extends Activity implements ActivityLifecycleProvider { private final BehaviorSubject lifecycleSubject = BehaviorSubject.create(); @Override - public Observable lifecycle() { + public final Observable lifecycle() { return lifecycleSubject.asObservable(); } @Override - public Observable.Transformer bindUntilEvent(ActivityEvent event) { + public final Observable.Transformer bindUntilEvent(ActivityEvent event) { return RxLifecycle.bindUntilActivityEvent(lifecycleSubject, event); } @Override - public Observable.Transformer bindToLifecycle() { + public final Observable.Transformer bindToLifecycle() { return RxLifecycle.bindActivity(lifecycleSubject); } diff --git a/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/RxDialogFragment.java b/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/RxDialogFragment.java index 6f6d617..98837bd 100644 --- a/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/RxDialogFragment.java +++ b/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/RxDialogFragment.java @@ -13,17 +13,17 @@ public class RxDialogFragment extends DialogFragment implements FragmentLifecycl private final BehaviorSubject lifecycleSubject = BehaviorSubject.create(); @Override - public Observable lifecycle() { + public final Observable lifecycle() { return lifecycleSubject.asObservable(); } @Override - public Observable.Transformer bindUntilEvent(FragmentEvent event) { + public final Observable.Transformer bindUntilEvent(FragmentEvent event) { return RxLifecycle.bindUntilFragmentEvent(lifecycleSubject, event); } @Override - public Observable.Transformer bindToLifecycle() { + public final Observable.Transformer bindToLifecycle() { return RxLifecycle.bindFragment(lifecycleSubject); } diff --git a/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/RxFragment.java b/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/RxFragment.java index 6718068..5ae5fd2 100644 --- a/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/RxFragment.java +++ b/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/RxFragment.java @@ -13,17 +13,17 @@ public class RxFragment extends Fragment implements FragmentLifecycleProvider { private final BehaviorSubject lifecycleSubject = BehaviorSubject.create(); @Override - public Observable lifecycle() { + public final Observable lifecycle() { return lifecycleSubject.asObservable(); } @Override - public Observable.Transformer bindUntilEvent(FragmentEvent event) { + public final Observable.Transformer bindUntilEvent(FragmentEvent event) { return RxLifecycle.bindUntilFragmentEvent(lifecycleSubject, event); } @Override - public Observable.Transformer bindToLifecycle() { + public final Observable.Transformer bindToLifecycle() { return RxLifecycle.bindFragment(lifecycleSubject); } diff --git a/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxAppCompatActivity.java b/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxAppCompatActivity.java index 3b6c915..bf707c0 100644 --- a/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxAppCompatActivity.java +++ b/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxAppCompatActivity.java @@ -13,17 +13,17 @@ public class RxAppCompatActivity extends AppCompatActivity implements ActivityLi private final BehaviorSubject lifecycleSubject = BehaviorSubject.create(); @Override - public Observable lifecycle() { + public final Observable lifecycle() { return lifecycleSubject.asObservable(); } @Override - public Observable.Transformer bindUntilEvent(ActivityEvent event) { + public final Observable.Transformer bindUntilEvent(ActivityEvent event) { return RxLifecycle.bindUntilActivityEvent(lifecycleSubject, event); } @Override - public Observable.Transformer bindToLifecycle() { + public final Observable.Transformer bindToLifecycle() { return RxLifecycle.bindActivity(lifecycleSubject); } diff --git a/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxDialogFragment.java b/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxDialogFragment.java index 28d5aac..c25d6f3 100644 --- a/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxDialogFragment.java +++ b/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxDialogFragment.java @@ -14,17 +14,17 @@ public class RxDialogFragment extends DialogFragment implements FragmentLifecycl private final BehaviorSubject lifecycleSubject = BehaviorSubject.create(); @Override - public Observable lifecycle() { + public final Observable lifecycle() { return lifecycleSubject.asObservable(); } @Override - public Observable.Transformer bindUntilEvent(FragmentEvent event) { + public final Observable.Transformer bindUntilEvent(FragmentEvent event) { return RxLifecycle.bindUntilFragmentEvent(lifecycleSubject, event); } @Override - public Observable.Transformer bindToLifecycle() { + public final Observable.Transformer bindToLifecycle() { return RxLifecycle.bindFragment(lifecycleSubject); } diff --git a/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxFragment.java b/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxFragment.java index 8350ca9..49228c2 100644 --- a/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxFragment.java +++ b/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxFragment.java @@ -14,17 +14,17 @@ public class RxFragment extends Fragment implements FragmentLifecycleProvider { private final BehaviorSubject lifecycleSubject = BehaviorSubject.create(); @Override - public Observable lifecycle() { + public final Observable lifecycle() { return lifecycleSubject.asObservable(); } @Override - public Observable.Transformer bindUntilEvent(FragmentEvent event) { + public final Observable.Transformer bindUntilEvent(FragmentEvent event) { return RxLifecycle.bindUntilFragmentEvent(lifecycleSubject, event); } @Override - public Observable.Transformer bindToLifecycle() { + public final Observable.Transformer bindToLifecycle() { return RxLifecycle.bindFragment(lifecycleSubject); } diff --git a/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxFragmentActivity.java b/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxFragmentActivity.java index c085df5..653c692 100644 --- a/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxFragmentActivity.java +++ b/rxlifecycle-components/src/main/java/com/trello/rxlifecycle/components/support/RxFragmentActivity.java @@ -13,17 +13,17 @@ public class RxFragmentActivity extends FragmentActivity implements ActivityLife private final BehaviorSubject lifecycleSubject = BehaviorSubject.create(); @Override - public Observable lifecycle() { + public final Observable lifecycle() { return lifecycleSubject.asObservable(); } @Override - public Observable.Transformer bindUntilEvent(ActivityEvent event) { + public final Observable.Transformer bindUntilEvent(ActivityEvent event) { return RxLifecycle.bindUntilActivityEvent(lifecycleSubject, event); } @Override - public Observable.Transformer bindToLifecycle() { + public final Observable.Transformer bindToLifecycle() { return RxLifecycle.bindActivity(lifecycleSubject); }