When return value is not of interest, is there any (even irrelevant in practice) difference between AtomicInteger.getAndIncrement()
and AtomicInteger.incrementAndGet()
methods, when return value is ignored?
I'm thinking of differences like which would be more idiomatic, as well as which would put less load in CPU caches getting synchronized, or anything else really, anything to help decide which one to use more rationally than tossing a coin.