Class CorrelationIdPool

    • Constructor Detail

      • CorrelationIdPool

        public CorrelationIdPool()
    • Method Detail

      • checkValidPositiveNumField

        public final void checkValidPositiveNumField​(String name,
                                                     long content,
                                                     List<String> errors)
        Check that a long number is greater than, or equal to 0
        Parameters:
        name - The field name
        content - the number to check
        errors - A list of error messages to which this method might add an entry if the check turns out negative.
      • checkValidPositiveNumFieldWithMinAndMaxValue

        public final void checkValidPositiveNumFieldWithMinAndMaxValue​(String name,
                                                                       int content,
                                                                       int minValue,
                                                                       int maxValue,
                                                                       List<String> errors)
        Check that an int number is not less than a minimum value, or greater than a maximum value
        Parameters:
        name - The field name
        content - the number to check
        minValue - the minimum value
        maxValue - the maximum value
        errors - A list of error messages to which this method might add an entry if the check turns out negative.
      • checkValidStringField

        public final void checkValidStringField​(String name,
                                                String content,
                                                List<String> errors)
        Checks that the String provided as 'content' is not null and not equal to "".
        Parameters:
        name - The field name
        content - The string to check
        errors - A list of error messages to which this method might add an entry if the check turns out negative.
      • checkValidNonZeroPositiveNumFields

        public final void checkValidNonZeroPositiveNumFields​(String name,
                                                             int[] content,
                                                             List<String> errors)
        Check that each member of a set of ints is greater than 0
        Parameters:
        name - The field name
        content - the number to check
        errors - A list of error messages to which this method might add an entry if the check turns out negative.
      • checkValidPositiveNumFieldWithMaxValue

        public final void checkValidPositiveNumFieldWithMaxValue​(String name,
                                                                 int content,
                                                                 int maxValue,
                                                                 List<String> errors)
        Check that an int number is not greater than a some maximum
        Parameters:
        name - The field name
        content - the number to check
        maxValue - the maximum value
        errors - A list of error messages to which this method might add an entry if the check turns out negative.
      • profileLoad

        public void profileLoad()
        Specified by:
        profileLoad in interface Profile