List of usage examples for java.util.concurrent.atomic AtomicInteger weakCompareAndSet
@Deprecated(since = "9") public final boolean weakCompareAndSet(int expectedValue, int newValue)
From source file:Main.java
public static void main(String[] argv) throws Exception { AtomicInteger atomicInteger = new AtomicInteger(); atomicInteger.weakCompareAndSet(1, 2); System.out.println(atomicInteger); }