Merge pull request #74 from TouchInstinct/idea_formatting
idea formatting
This commit is contained in:
commit
ef7cf6d50d
|
|
@ -22,5 +22,5 @@ dependencies {
|
|||
provided 'com.android.support:recyclerview-v7:26.0.0-beta2'
|
||||
|
||||
provided 'io.reactivex.rxjava2:rxandroid:2.0.1'
|
||||
provided 'io.reactivex.rxjava2:rxjava:2.1.1'
|
||||
provided 'io.reactivex.rxjava2:rxjava:2.1.2'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public abstract class ItemAdapterDelegate<TViewHolder extends BindableViewHolder
|
|||
* This item will be casted to {@link TItem} and passes to {@link #onBindViewHolder(TViewHolder, TItem, int, int)}.
|
||||
*
|
||||
* @param item Item to check;
|
||||
* @param positionInAdapter Position of item in adapter;
|
||||
* @param positionInAdapter Position of item in adapter;
|
||||
* @param itemCollectionPosition Position of item in collection that contains item;
|
||||
* @return True if item is processable by this delegate.
|
||||
*/
|
||||
|
|
@ -35,8 +35,8 @@ public abstract class ItemAdapterDelegate<TViewHolder extends BindableViewHolder
|
|||
/**
|
||||
* Returns unique ID of item to support stable ID's logic of RecyclerView's adapter.
|
||||
*
|
||||
* @param item Item to check;
|
||||
* @param positionInAdapter Position of item in adapter;
|
||||
* @param item Item to check;
|
||||
* @param positionInAdapter Position of item in adapter;
|
||||
* @param positionInCollection Position of item in collection that contains item;
|
||||
* @return Unique item ID.
|
||||
*/
|
||||
|
|
@ -56,9 +56,9 @@ public abstract class ItemAdapterDelegate<TViewHolder extends BindableViewHolder
|
|||
/**
|
||||
* Binds item to created by this object ViewHolder.
|
||||
*
|
||||
* @param holder ViewHolder to bind item to;
|
||||
* @param item Item to check;
|
||||
* @param positionInAdapter Position of item in adapter;
|
||||
* @param holder ViewHolder to bind item to;
|
||||
* @param item Item to check;
|
||||
* @param positionInAdapter Position of item in adapter;
|
||||
* @param positionInCollection Position of item in collection that contains item;
|
||||
*/
|
||||
public abstract void onBindViewHolder(@NonNull final TViewHolder holder, @NonNull final TItem item,
|
||||
|
|
@ -67,10 +67,10 @@ public abstract class ItemAdapterDelegate<TViewHolder extends BindableViewHolder
|
|||
/**
|
||||
* Binds item with payloads to created by this object ViewHolder.
|
||||
*
|
||||
* @param holder ViewHolder to bind item to;
|
||||
* @param item Item to check;
|
||||
* @param payloads Payloads;
|
||||
* @param positionInAdapter Position of item in adapter;
|
||||
* @param holder ViewHolder to bind item to;
|
||||
* @param item Item to check;
|
||||
* @param payloads Payloads;
|
||||
* @param positionInAdapter Position of item in adapter;
|
||||
* @param positionInCollection Position of item in collection that contains item;
|
||||
*/
|
||||
public void onBindViewHolder(@NonNull final TViewHolder holder, @NonNull final TItem item, @NonNull final List<Object> payloads,
|
||||
|
|
|
|||
|
|
@ -624,8 +624,8 @@ public abstract class ObservableCollectionAdapter<TItem, TItemViewHolder extends
|
|||
/**
|
||||
* Enable diff utils algorithm in collection changes.
|
||||
*
|
||||
* @param detectMoves The flag that determines whether the {@link Change.Moved} changes will be generated or not;
|
||||
* @param sameItemsPredicate Predicate for the determination of the same elements;
|
||||
* @param detectMoves The flag that determines whether the {@link Change.Moved} changes will be generated or not;
|
||||
* @param sameItemsPredicate Predicate for the determination of the same elements;
|
||||
* @param changePayloadProducer Function that calculate change payload when items the same but contents are different.
|
||||
*/
|
||||
public void enableDiffUtils(final boolean detectMoves,
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ public abstract class PositionAdapterDelegate<TViewHolder extends BindableViewHo
|
|||
/**
|
||||
* Binds position to ViewHolder.
|
||||
*
|
||||
* @param holder ViewHolder to bind position to;
|
||||
* @param holder ViewHolder to bind position to;
|
||||
* @param positionInAdapter Position of item in adapter.
|
||||
*/
|
||||
public abstract void onBindViewHolder(@NonNull final TViewHolder holder, final int positionInAdapter);
|
||||
|
|
@ -58,8 +58,8 @@ public abstract class PositionAdapterDelegate<TViewHolder extends BindableViewHo
|
|||
/**
|
||||
* Binds position with payloads to ViewHolder.
|
||||
*
|
||||
* @param holder ViewHolder to bind position to;
|
||||
* @param payloads Payloads;
|
||||
* @param holder ViewHolder to bind position to;
|
||||
* @param payloads Payloads;
|
||||
* @param positionInAdapter Position of item in adapter.
|
||||
*/
|
||||
public void onBindViewHolder(@NonNull final TViewHolder holder, @NonNull final List<Object> payloads, final int positionInAdapter) {
|
||||
|
|
|
|||
|
|
@ -159,17 +159,17 @@ public class LifecycleView extends FrameLayout implements LifecycleBindable {
|
|||
@NonNull
|
||||
@Override
|
||||
public <T> Disposable untilStop(@NonNull final Observable<T> observable,
|
||||
@NonNull final Consumer<T> onNextAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction) {
|
||||
@NonNull final Consumer<T> onNextAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction) {
|
||||
return baseLifecycleBindable.untilStop(observable, onNextAction, onErrorAction);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public <T> Disposable untilStop(@NonNull final Observable<T> observable,
|
||||
@NonNull final Consumer<T> onNextAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction,
|
||||
@NonNull final Action onCompletedAction) {
|
||||
@NonNull final Consumer<T> onNextAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction,
|
||||
@NonNull final Action onCompletedAction) {
|
||||
return baseLifecycleBindable.untilStop(observable, onNextAction, onErrorAction, onCompletedAction);
|
||||
}
|
||||
|
||||
|
|
@ -188,8 +188,8 @@ public class LifecycleView extends FrameLayout implements LifecycleBindable {
|
|||
@NonNull
|
||||
@Override
|
||||
public <T> Disposable untilStop(@NonNull final Single<T> single,
|
||||
@NonNull final Consumer<T> onSuccessAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction) {
|
||||
@NonNull final Consumer<T> onSuccessAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction) {
|
||||
return baseLifecycleBindable.untilStop(single, onSuccessAction, onErrorAction);
|
||||
}
|
||||
|
||||
|
|
@ -208,8 +208,8 @@ public class LifecycleView extends FrameLayout implements LifecycleBindable {
|
|||
@NonNull
|
||||
@Override
|
||||
public Disposable untilStop(@NonNull final Completable completable,
|
||||
@NonNull final Action onCompletedAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction) {
|
||||
@NonNull final Action onCompletedAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction) {
|
||||
return baseLifecycleBindable.untilStop(completable, onCompletedAction, onErrorAction);
|
||||
}
|
||||
|
||||
|
|
@ -248,17 +248,17 @@ public class LifecycleView extends FrameLayout implements LifecycleBindable {
|
|||
@NonNull
|
||||
@Override
|
||||
public <T> Disposable untilDestroy(@NonNull final Observable<T> observable,
|
||||
@NonNull final Consumer<T> onNextAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction) {
|
||||
@NonNull final Consumer<T> onNextAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction) {
|
||||
return baseLifecycleBindable.untilDestroy(observable, onNextAction, onErrorAction);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public <T> Disposable untilDestroy(@NonNull final Observable<T> observable,
|
||||
@NonNull final Consumer<T> onNextAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction,
|
||||
@NonNull final Action onCompletedAction) {
|
||||
@NonNull final Consumer<T> onNextAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction,
|
||||
@NonNull final Action onCompletedAction) {
|
||||
return baseLifecycleBindable.untilDestroy(observable, onNextAction, onErrorAction, onCompletedAction);
|
||||
}
|
||||
|
||||
|
|
@ -277,8 +277,8 @@ public class LifecycleView extends FrameLayout implements LifecycleBindable {
|
|||
@NonNull
|
||||
@Override
|
||||
public <T> Disposable untilDestroy(@NonNull final Single<T> single,
|
||||
@NonNull final Consumer<T> onSuccessAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction) {
|
||||
@NonNull final Consumer<T> onSuccessAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction) {
|
||||
return baseLifecycleBindable.untilDestroy(single, onSuccessAction, onErrorAction);
|
||||
}
|
||||
|
||||
|
|
@ -297,8 +297,8 @@ public class LifecycleView extends FrameLayout implements LifecycleBindable {
|
|||
@NonNull
|
||||
@Override
|
||||
public Disposable untilDestroy(@NonNull final Completable completable,
|
||||
@NonNull final Action onCompletedAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction) {
|
||||
@NonNull final Action onCompletedAction,
|
||||
@NonNull final Consumer<Throwable> onErrorAction) {
|
||||
return baseLifecycleBindable.untilDestroy(completable, onCompletedAction, onErrorAction);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue