Class SingleThreadDoubleAdder


  • public class SingleThreadDoubleAdder
    extends java.lang.Object
    Similar to DoubleAdder but for a single threaded usage.
    Just a simple double reference without any overhead.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double addAndReturnAdded​(double add)  
      double sum()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SingleThreadDoubleAdder

        public SingleThreadDoubleAdder​(double value)
    • Method Detail

      • addAndReturnAdded

        public double addAndReturnAdded​(double add)
      • sum

        public double sum()