Class Utils


  • public final class Utils
    extends java.lang.Object
    Utility methods.
    Since:
    9.0
    Author:
    Pedro Ruivo
    • Method Detail

      • validateStrongCounterBounds

        public static void validateStrongCounterBounds​(long lowerBound,
                                                       long initialValue,
                                                       long upperBound)
        Validates the lower and upper bound for a strong counter.

        It throws a CounterConfigurationException is not valid.

        Parameters:
        lowerBound - The counter's lower bound value.
        initialValue - The counter's initial value.
        upperBound - The counter's upper bound value.
        Throws:
        CounterConfigurationException - if the upper or lower bound aren't valid.