Class AdderUtil


  • public final class AdderUtil
    extends java.lang.Object
    This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
    • Field Detail

      • hasJreAdder

        private static final boolean hasJreAdder
    • Constructor Detail

      • AdderUtil

        private AdderUtil()
    • Method Detail

      • createLongAdder

        public static LongAdder createLongAdder()
        Create an instance of LongAdder. The implementation will be LongAdder if available on the classpath. If not, a less performant implementation based on AtomicLong will be used.
      • createDoubleAdder

        public static DoubleAdder createDoubleAdder()
        Create an instance of LongAdder. The implementation will be DoubleAdder if available on the classpath. If not, a less performant implementation based on AtomicLong will be used.