Class Preconditions

    • Method Detail

      • checkNotEmpty

        public static String checkNotEmpty​(String arg,
                                           @Nullable
                                           Object errorMessage)
        Ensures the argument is not null, empty string, or just whitespace.
        Parameters:
        arg - The argument
        errorMessage - The exception message to use if the check fails
        Returns:
        The passed in argument if it is not blank