Class Atomics


  • public class Atomics
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Atomics()  
    • Method Summary

      Modifier and Type Method Description
      static <T> int decrement​(java.util.concurrent.atomic.AtomicStampedReference<T> reference)  
      static void updateMax​(java.util.concurrent.atomic.AtomicInteger currentMax, int newValue)  
      static void updateMax​(java.util.concurrent.atomic.AtomicLong currentMax, long newValue)  
      static <T> boolean updateMax​(java.util.concurrent.atomic.AtomicStampedReference<T> reference, T value, int stamp)  
      static void updateMin​(java.util.concurrent.atomic.AtomicInteger currentMin, int newValue)  
      static void updateMin​(java.util.concurrent.atomic.AtomicLong currentMin, long newValue)  
      • Methods inherited from class java.lang.Object

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

      • Atomics

        public Atomics()
    • Method Detail

      • updateMin

        public static void updateMin​(java.util.concurrent.atomic.AtomicLong currentMin,
                                     long newValue)
      • updateMax

        public static void updateMax​(java.util.concurrent.atomic.AtomicLong currentMax,
                                     long newValue)
      • updateMin

        public static void updateMin​(java.util.concurrent.atomic.AtomicInteger currentMin,
                                     int newValue)
      • updateMax

        public static void updateMax​(java.util.concurrent.atomic.AtomicInteger currentMax,
                                     int newValue)
      • decrement

        public static <T> int decrement​(java.util.concurrent.atomic.AtomicStampedReference<T> reference)
      • updateMax

        public static <T> boolean updateMax​(java.util.concurrent.atomic.AtomicStampedReference<T> reference,
                                            T value,
                                            int stamp)