Class AbstractConfiguration<ConfigurationT extends AbstractConfiguration>

    • Constructor Detail

      • AbstractConfiguration

        public AbstractConfiguration()
    • Method Detail

      • validateNotNull

        protected <T> T validateNotNull​(T value,
                                        String message)
        Check that a configuration value is not null.
      • validateStringNotBlank

        protected String validateStringNotBlank​(String value,
                                                String message)
        Check that a configuration value is not blank.
        Parameters:
        message - message to pass to the exception if the string is blank
        value - string to check
        Returns:
        the string if it's not blank
        Throws:
        IllegalArgumentException - if the string is blank
      • validateStringListNotBlank

        protected List<String> validateStringListNotBlank​(List<String> values,
                                                          String message)
        Check that a list of configuration values is not blank.
        Parameters:
        message - message to pass to the exception if the string is blank
        values - strings to check
        Returns:
        the string if it's not blank
        Throws:
        IllegalArgumentException - if the string is blank