I have found AtomicInteger, AtomicLong, but where is AtomicFloat (or AtomicDouble)? Maybe there is some trick?
AtomicInteger
AtomicLong
AtomicFloat
AtomicDouble
You could perhaps use an AtomicReference instead. I think AtomicInteger and AtomicLong get special classes because they're useful for counting.
AtomicReference