Further tidying of Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592873 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
01fe91839a
commit
daf4b4f98c
|
@ -7638,27 +7638,23 @@ public class StringUtils {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* Wraps a String with a char.
|
* Wraps a string with a char.
|
||||||
* <p>
|
* <p>
|
||||||
*
|
*
|
||||||
* <p>
|
|
||||||
* A {@code null} input String returns {@code null}.
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* <pre>
|
* <pre>
|
||||||
* StringUtils.wrap(null, *) = null
|
* StringUtils.wrap(null, *) = null
|
||||||
* StringUtils.wrap("", *) = ""
|
* StringUtils.wrap("", *) = ""
|
||||||
* StringUtils.wrap("ab", '\0') = "ab"
|
* StringUtils.wrap("ab", '\0') = "ab"
|
||||||
* StringUtils.wrap("ab", 'x') = "xabx"
|
* StringUtils.wrap("ab", 'x') = "xabx"
|
||||||
* StringUtils.wrap("ab", '\'') = "'ab'"
|
* StringUtils.wrap("ab", '\'') = "'ab'"
|
||||||
* StringUtils.wrap("\"ab\"", '\"') = "\"ab\""
|
* StringUtils.wrap("\"ab\"", '\"') = "\"ab\""
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @param str
|
* @param str
|
||||||
* the String to be wrapper, may be null
|
* the string to be wrapped, may be {@code null}
|
||||||
* @param wrapWith
|
* @param wrapWith
|
||||||
* the char that will wrap str
|
* the char that will wrap {@code str}
|
||||||
* @return wrapped String, {@code null} if null String input
|
* @return the wrapped string, or {@code null} if {@code str==null}
|
||||||
* @since 3.4
|
* @since 3.4
|
||||||
*/
|
*/
|
||||||
public static String wrap(String str, char wrapWith) {
|
public static String wrap(String str, char wrapWith) {
|
||||||
|
|
Loading…
Reference in New Issue