-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMyThread.java
More file actions
35 lines (28 loc) · 745 Bytes
/
MyThread.java
File metadata and controls
35 lines (28 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.yurii.salimov.lesson07.task03;
/**
* @author Yuriy Salimov (yuriy.alex.salimov@gmail.com)
* @version 1.0
*/
public final class MyThread implements Runnable {
private final Matrix matrix;
private final int indexI;
private final int indexJ;
public MyThread(final Matrix matrix, final int indexI, final int indexJ) {
this.matrix = matrix;
this.indexI = indexI;
this.indexJ = indexJ;
}
@Override
public void run() {
this.matrix.calculation(this.indexI, this.indexJ);
}
public Matrix getMatrix() {
return this.matrix;
}
public int getIndexI() {
return this.indexI;
}
public int getIndexJ() {
return this.indexJ;
}
}