Skip to content

Commit

Permalink
[Add] : contains method to StringUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhailin committed Dec 19, 2024
1 parent 95a149e commit e894884
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ public static boolean isNotBlank(final CharSequence cs) {
return !isBlank(cs);
}

/**
* <p>contains.</p>
*
* @param str a {@link java.lang.String} object.
* @return a boolean.
*/
public static boolean contains(final String str, String str0) {
return str != null && str.contains(str0);
}

/**
* <p>isBlank.</p>
*
Expand Down

0 comments on commit e894884

Please sign in to comment.