Class Atomics


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean updateMax​(java.util.concurrent.atomic.AtomicInteger currentMax, int newValue)  
      static boolean updateMax​(java.util.concurrent.atomic.AtomicLong currentMax, long newValue)  
      static boolean updateMin​(java.util.concurrent.atomic.AtomicInteger currentMin, int newValue)  
      static boolean 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
    • Method Detail

      • updateMin

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

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

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

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