Class PrefixOps.OfUnordLong.MyAtomicLong

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    PrefixOps.OfUnordLong

    private static final class PrefixOps.OfUnordLong.MyAtomicLong
    extends java.util.concurrent.atomic.AtomicLong
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean init  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MyAtomicLong()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean initialize​(long x)
      On the very first call sets the value to x
      • Methods inherited from class java.util.concurrent.atomic.AtomicLong

        accumulateAndGet, addAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAcquire, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, getOpaque, getPlain, incrementAndGet, intValue, lazySet, longValue, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
      • Methods inherited from class java.lang.Number

        byteValue, shortValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • init

        private boolean init
    • Constructor Detail

      • MyAtomicLong

        private MyAtomicLong()
    • Method Detail

      • initialize

        public boolean initialize​(long x)
        On the very first call sets the value to x
        Parameters:
        x - the initial value
        Returns:
        true if it was the very first call