Class Atomics


  • public class Atomics
    extends Object
    • Method Detail

      • updateMin

        public static boolean updateMin​(AtomicLong currentMin,
                                        long newValue)
      • updateMax

        public static boolean updateMax​(AtomicLong currentMax,
                                        long newValue)
      • updateMin

        public static boolean updateMin​(AtomicInteger currentMin,
                                        int newValue)
      • updateMax

        public static boolean updateMax​(AtomicInteger currentMax,
                                        int newValue)