public interface IObjectStringWithSubstringCheck extends ICheck
Modifier and Type | Method and Description |
---|---|
boolean |
isStringWithSubstring(Object caller,
String referenceA,
String substring)
Checks if the A contains substring.
|
boolean isStringWithSubstring(Object caller, String referenceA, String substring)
The empty string is a substring to all string instances.
null has no substrings and is not a substring.
caller
- end-user instance initiating the checkreferenceA
- reference to check for substring reference Bsubstring
- potential substring of reference AIllegalArgumentException
- if caller is nullThe MIT License (MIT) - Copyright © 2014-2015 Keld Oelykke. All Rights Reserved.