Java: is there no AtomicFloat or AtomicDouble?

后端 未结 8 1456
误落风尘
误落风尘 2020-12-01 03:12

I have found AtomicInteger, AtomicLong, but where is AtomicFloat (or AtomicDouble)? Maybe there is some trick?

8条回答
  •  执念已碎
    2020-12-01 04:00

    I found a library with AtomicFloat.

    http://dhale.github.io/jtk/api/edu/mines/jtk/util/AtomicFloat.html

    For quick solution, maven dependency given below:

    
        edu.mines.jtk
        edu-mines-jtk
        1.1.0
    
    

提交回复
热议问题