// Path: MyApplication/app/src/main/java/com/example/mikhail_sianko/myapplication/threads/Operation.java
// public interface Operation<Params, Progress, Result> {
// 
//     Result doing(Params params, ProgressCallback<Progress> progressCallback) throws Exception;
// 
// }
// 
// Path: MyApplication/app/src/main/java/com/example/mikhail_sianko/myapplication/threads/ProgressCallback.java
// public interface ProgressCallback<Progress> {
// 
//     void onProgressChanged(Progress progress);
// 
// }


import android.util.Log;
import com.example.mikhail_sianko.myapplication.threads.Operation;
import com.example.mikhail_sianko.myapplication.threads.ProgressCallback;
import java.io.IOException;
package com.example.mikhail_sianko.myapplication.threads.operation;




public class WorkerOperation implements Operation<String, Integer, WorkerOperation.Result> {

    public static final int N = 3;

    @Override
// Path: MyApplication/app/src/main/java/com/example/mikhail_sianko/myapplication/threads/Operation.java
// public interface Operation<Params, Progress, Result> {
// 
//     Result doing(Params params, ProgressCallback<Progress> progressCallback) throws Exception;
// 
// }
// 
// Path: MyApplication/app/src/main/java/com/example/mikhail_sianko/myapplication/threads/ProgressCallback.java
// public interface ProgressCallback<Progress> {
// 
//     void onProgressChanged(Progress progress);
// 
// }


// Path: MyApplication/app/src/main/java/com/example/mikhail_sianko/myapplication/threads/operation/WorkerOperation.java
import android.util.Log;
import com.example.mikhail_sianko.myapplication.threads.Operation;
import com.example.mikhail_sianko.myapplication.threads.ProgressCallback;
import java.io.IOException;

package com.example.mikhail_sianko.myapplication.threads.operation;




public class WorkerOperation implements Operation<String, Integer, WorkerOperation.Result> {

    public static final int N = 3;

    @Override
    public Result doing(final String whatYouDoing, final ProgressCallback<Integer> progressCallback) throws Exception {