Open LeoAndo opened 3 years ago
updateAndGet
accumulateAndGet
largest.updateAndGet(x -> Math.max(x, observed));
updateAndGet
メソッドとaccumulateAndGet
メソッドでより簡単になった アトミックは原子性と呼ばれ、操作が完全に実行されるか、全く実行されないことを表すupdateAndGet
メソッドを使う(ラムダを使う)