/** * Converts the input to a String and ensures that the input contains at least one of the specified substrings. * * @param requiredSubStrings * the required substrings * @throws NullPointerException * if requiredSubStrings or one of its elements is null * @throws IllegalArgumentException * if requiredSubStrings is empty */ public RequireSubStr(final String... requiredSubStrings) { super(); checkPreconditions(requiredSubStrings); checkAndAddRequiredSubStrings(requiredSubStrings); }
/** * Converts the input to a String, ensures that the input contains the specified substring, then calls the next * processor in the chain. * * @param requiredSubString * the required substring * @param next * the next processor in the chain * @throws NullPointerException * if requiredSubString or next is null */ public RequireSubStr(final String requiredSubString, final CellProcessor next) { super(next); checkPreconditions(requiredSubString); checkAndAddRequiredSubStrings(requiredSubString); }
/** * Converts the input to a String, ensures that the input contains at least one of the specified substrings, then * calls the next processor in the chain. * * @param requiredSubStrings * the List of required substrings * @param next * the next processor in the chain * @throws NullPointerException * if requiredSubStrings, one of its elements or next is null * @throws IllegalArgumentException * if requiredSubStrings is empty */ public RequireSubStr(final List<String> requiredSubStrings, final CellProcessor next) { super(next); checkPreconditions(requiredSubStrings); checkAndAddRequiredSubStrings(requiredSubStrings); }
/** * Converts the input to a String, ensures that the input contains at least one of the specified substrings, then * calls the next processor in the chain. * * @param requiredSubStrings * the List of required substrings * @param next * the next processor in the chain * @throws NullPointerException * if requiredSubStrings, one of its elements or next is null * @throws IllegalArgumentException * if requiredSubStrings is empty */ public RequireSubStr(final String[] requiredSubStrings, final CellProcessor next) { super(next); checkPreconditions(requiredSubStrings); checkAndAddRequiredSubStrings(requiredSubStrings); }