Class AtomicUtil

java.lang.Object
io.deephaven.base.AtomicUtil

public abstract class AtomicUtil extends Object
  • Constructor Details

    • AtomicUtil

      public AtomicUtil()
  • Method Details

    • compareAndSetAndGetOld

      public static long compareAndSetAndGetOld(AtomicLong i, long expected, long updated)
    • getAndSetIfIncreases

      public static long getAndSetIfIncreases(AtomicLong i, long value)
    • getAndSetIfIncreasesBy

      public static long getAndSetIfIncreasesBy(AtomicLong i, long by, long value)
    • getAndSetIfDecreases

      public static long getAndSetIfDecreases(AtomicLong i, long value)
    • getAndSetIfDecreases

      public static long getAndSetIfDecreases(AtomicLong i, long by, long value)
    • getAndSetIfIncreases

      public static int getAndSetIfIncreases(AtomicInteger i, int value)
    • getAndSetIfIncreasesBy

      public static int getAndSetIfIncreasesBy(AtomicInteger i, int by, int value)
    • setIfLessThan

      public static boolean setIfLessThan(AtomicInteger i, int pivot, int value)
    • setIfGreaterThan

      public static boolean setIfGreaterThan(AtomicInteger i, int pivot, int value)
    • changeAndGetIfLessThan

      public static int changeAndGetIfLessThan(AtomicInteger i, int by, int pivot, int negative)
    • getAndIncreaseIfLessThan

      public static int getAndIncreaseIfLessThan(AtomicInteger i, int by, int pivot)
    • getAndDecreaseIfGreaterThan

      public static int getAndDecreaseIfGreaterThan(AtomicInteger i, int by, int pivot)
    • getAndSetIfGreaterThan

      public static int getAndSetIfGreaterThan(AtomicInteger i, int value, int pivot)
    • getAndSetIfLessThan

      public static int getAndSetIfLessThan(AtomicInteger i, int value, int pivot)
    • changeAndGetIfGreaterThan

      public static int changeAndGetIfGreaterThan(AtomicInteger i, int by, int pivot, int negative)
    • setIfLessThan

      public static boolean setIfLessThan(AtomicLong i, long pivot, long value)
    • setIfGreaterThan

      public static boolean setIfGreaterThan(AtomicLong i, long pivot, long value)
    • changeAndGetIfLessThan

      public static long changeAndGetIfLessThan(AtomicLong i, long by, long pivot, long negative)
    • changeAndGetIfGreaterThan

      public static long changeAndGetIfGreaterThan(AtomicLong i, long by, long pivot, long negative)
    • getAndSetIfGreaterThan

      public static long getAndSetIfGreaterThan(AtomicLong i, long value, long pivot)
    • getAndSetIfLessThan

      public static long getAndSetIfLessThan(AtomicLong i, long value, long pivot)
    • getAndIncreaseIfLessThan

      public static long getAndIncreaseIfLessThan(AtomicLong i, long by, long pivot)
    • getAndDecreaseIfGreaterThan

      public static long getAndDecreaseIfGreaterThan(AtomicLong i, long by, long pivot)
    • atomicOr

      public static int atomicOr(AtomicInteger i, int mask)
    • atomicAnd

      public static int atomicAnd(AtomicInteger i, int mask)
    • atomicAndNot

      public static int atomicAndNot(AtomicInteger i, int mask)