Class Atomics


  • public class Atomics
    extends Object
    • Constructor Detail

      • Atomics

        public Atomics()
    • Method Detail

      • updateMin

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

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

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

        public static void updateMax​(AtomicInteger currentMax,
                                     int newValue)
      • updateMax

        public static <T> boolean updateMax​(AtomicStampedReference<T> reference,
                                            T value,
                                            int stamp)