Skip to content

Commit d109822

Browse files
authored
this happened so that the word may be fulfilled
But this happened so that the word may be fulfilled which was written in their law, 'They hated me without a cause.' (John 15:25)
1 parent 0e8b392 commit d109822

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
//But this happened so that the word may be fulfilled which was written in their law, 'They hated me without a cause.' (John 15:25)
3+
4+
package com.javarush.task.task29.task2908;
5+
6+
public class Square implements Computable<Integer, Integer> {
7+
@Override
8+
public Integer compute(Integer integer) throws InterruptedException {
9+
int val = integer.intValue();
10+
return val * val;
11+
}
12+
}
13+
14+
/*
15+
Кеширование
16+
17+
В CacheComputeManager реализуй логику пустого метода.
18+
19+
Догадайся, что он должен делать по названию метода и по логике класса.
20+
21+
22+
23+
24+
25+
Требования:
26+
27+
1. Метод createFutureTaskForNewArgumentThatHaveToComputeValue должен создавать и возвращать объект типа FutureTask.
28+
29+
2. В методе createFutureTaskForNewArgumentThatHaveToComputeValue должен создаваться объект анонимного класса, реализующего интерфейс Callable.
30+
31+
3. Внутри метода createFutureTaskForNewArgumentThatHaveToComputeValue должна встречаться строка "return computable.compute(arg);".
32+
33+
4. Программа должна выводить текст указанный в комментариях в классе Solution.
34+
*/

0 commit comments

Comments
 (0)