improve java api doc (#2508)

This commit is contained in:
Hao Chen
2018-07-30 11:41:11 +08:00
committed by Robert Nishihara
parent 3f3514c2b3
commit fe65f9fbbc
2 changed files with 47 additions and 137 deletions
@@ -18,8 +18,8 @@ public class Exercise08 {
RayActor<Adder> adder = Ray.create(Adder.class);
// Use `Ray.call(actor, parameters)` to call an actor method.
RayObject<Integer> result1 = Ray.call(Adder::add, adder, 1);
RayObject<Integer> result2 = Ray.call(Adder::add, adder, 10);
System.out.println(result1.get());
RayObject<Integer> result2 = Ray.call(Adder::add, adder, 10);
System.out.println(result2.get());
} catch (Throwable t) {
t.printStackTrace();
@@ -39,10 +39,10 @@ public class Exercise08 {
sum = 0;
}
public Integer add(Integer n) {
public int add(int n) {
return sum += n;
}
private Integer sum;
private int sum;
}
}