boolean inRange(String lowerBound, String upperBound, String[] exclusions)
Indicates whether or not this string is within the specified range. The checking is inclusive, meaning that the lower and upper bounds of the range will be tested for the string. A separate list of exclusions can be provided to indicate that even though the string is within the given range, it should not be accepted if found within the exclusions list. Case differences (upper/lower) are not ignored.
Input Parameters
lowerBound | String The lower bound of the range to check against (inclusive). |
upperBound | String The upper bound of the range to check against (inclusive). |
exclusions | String List An array of items to be excluded from the range check. |
Return Value
Boolean Returns true if this string exists within the specified range, false otherwise. |