Skip to content
This repository was archived by the owner on Dec 17, 2020. It is now read-only.

Commit 1595db8

Browse files
committed
Small javadoc update
1 parent 137502d commit 1595db8

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

library/src/main/java/org/neotech/library/retainabletasks/TaskManager.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ public interface TaskAttachListener {
7878
* {@link TaskManager}.
7979
*
8080
* @param task The Task to execute.
81+
* @param <Progress> the type of optional progress values that the Task can emit.
82+
* @param <Result> the type of the result that the Task will return.
8183
* @see TaskExecutor#setDefaultExecutor(Executor)
8284
*/
8385
@MainThread
@@ -88,6 +90,8 @@ public interface TaskAttachListener {
8890
* delivered to the class owning ({@link TaskManagerOwner}) this {@link TaskManager}.
8991
*
9092
* @param task The Task to execute.
93+
* @param <Progress> the type of optional progress values that the Task can emit.
94+
* @param <Result> the type of the result that the Task will return.
9195
* @param executor The Executor to execute the given Task with.
9296
*/
9397
@MainThread
@@ -102,6 +106,8 @@ public interface TaskAttachListener {
102106
*
103107
* @param task The Task to execute.
104108
* @param callback The Callback listener to deliver the Task events to.
109+
* @param <Progress> the type of optional progress values that the Task can emit.
110+
* @param <Result> the type of the result that the Task will return.
105111
* @see TaskExecutor#setDefaultExecutor(Executor)
106112
*/
107113
@MainThread
@@ -117,6 +123,8 @@ public interface TaskAttachListener {
117123
* @param task The Task to execute.
118124
* @param callback The Callback listener to deliver the Task events to.
119125
* @param executor The Executor to execute the given Task with.
126+
* @param <Progress> the type of optional progress values that the Task can emit.
127+
* @param <Result> the type of the result that the Task will return.
120128
*/
121129
@MainThread
122130
public abstract <Progress, Result> void execute(@NonNull Task<Progress, Result> task, @NonNull Task.Callback callback, @NonNull Executor executor);

library/src/main/java/org/neotech/library/retainabletasks/internal/TaskAttachBinding.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
package org.neotech.library.retainabletasks.internal;
22

3+
import android.support.annotation.RestrictTo;
4+
35
import org.neotech.library.retainabletasks.Task;
46

57
/**
6-
* The generated classes for use with annotations are of this type. Currently under construction.
8+
* The generated classes for use with annotations are of this type.
79
*
810
* Created by Rolf Smit on 26-May-17.
911
*/
12+
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
1013
public interface TaskAttachBinding {
1114

1215
Task.Callback getListenerFor(Task<?, ?> task, boolean isReAttach);

0 commit comments

Comments
 (0)